Lines Matching refs:dip
899 sv_query_devinfo(void *addr, mixer_devinfo_t *dip)
904 if (dip->index <= SV_LAST_CLASS) {
905 dip->type = AUDIO_MIXER_CLASS;
906 dip->mixer_class = dip->index;
907 dip->next = dip->prev = AUDIO_MIXER_LAST;
908 strcpy(dip->label.name, mixer_classes[dip->index]);
912 if (dip->index >= SV_FIRST_MIXER &&
913 dip->index <= SV_LAST_MIXER) {
916 off = dip->index - SV_FIRST_MIXER;
919 dip->mixer_class = ports[idx].class;
920 strcpy(dip->label.name, ports[idx].audio);
923 dip->type = AUDIO_MIXER_VALUE;
924 dip->prev = AUDIO_MIXER_LAST;
925 dip->next = dip->index + 1;
928 dip->un.v.num_channels = 2;
930 dip->un.v.num_channels = 1;
932 strcpy(dip->un.v.units.name, AudioNvolume);
934 dip->type = AUDIO_MIXER_ENUM;
935 dip->prev = dip->index - 1;
936 dip->next = AUDIO_MIXER_LAST;
938 strcpy(dip->label.name, AudioNmute);
939 dip->un.e.num_mem = 2;
940 strcpy(dip->un.e.member[0].label.name, AudioNoff);
941 dip->un.e.member[0].ord = 0;
942 strcpy(dip->un.e.member[1].label.name, AudioNon);
943 dip->un.e.member[1].ord = 1;
949 switch (dip->index) {
951 dip->mixer_class = SV_RECORD_CLASS;
952 dip->prev = AUDIO_MIXER_LAST;
953 dip->next = SV_RECORD_GAIN;
954 strcpy(dip->label.name, AudioNsource);
955 dip->type = AUDIO_MIXER_ENUM;
957 dip->un.e.num_mem = ARRAY_SIZE(record_sources);
959 strcpy(dip->un.e.member[i].label.name,
961 dip->un.e.member[i].ord = record_sources[i].idx;
966 dip->mixer_class = SV_RECORD_CLASS;
967 dip->prev = SV_RECORD_SOURCE;
968 dip->next = AUDIO_MIXER_LAST;
969 strcpy(dip->label.name, "gain");
970 dip->type = AUDIO_MIXER_VALUE;
971 dip->un.v.num_channels = 1;
972 strcpy(dip->un.v.units.name, AudioNvolume);
976 dip->mixer_class = SV_RECORD_CLASS;
977 dip->prev = AUDIO_MIXER_LAST;
978 dip->next = AUDIO_MIXER_LAST;
979 strcpy(dip->label.name, "micboost");
983 dip->mixer_class = SV_OUTPUT_CLASS;
984 dip->prev = dip->next = AUDIO_MIXER_LAST;
985 strcpy(dip->label.name, AudioNspatial);
988 dip->type = AUDIO_MIXER_ENUM;
989 dip->un.e.num_mem = 2;
990 strcpy(dip->un.e.member[0].label.name, AudioNoff);
991 dip->un.e.member[0].ord = 0;
992 strcpy(dip->un.e.member[1].label.name, AudioNon);
993 dip->un.e.member[1].ord = 1;