Lines Matching refs:dip

815 ym_query_devinfo(void *addr, mixer_devinfo_t *dip)
827 if (!YM_IS_SA3(sc) && YM_MIXER_SA3_ONLY(dip->index))
830 dip->next = dip->prev = AUDIO_MIXER_LAST;
832 switch(dip->index) {
841 dip->type = AUDIO_MIXER_CLASS;
842 dip->mixer_class = dip->index;
843 strcpy(dip->label.name,
844 mixer_classes[dip->index - YM_INPUT_CLASS]);
854 dip->type = AUDIO_MIXER_VALUE;
855 if (dip->index == YM_MONITOR_LVL)
856 dip->mixer_class = YM_MONITOR_CLASS;
858 dip->mixer_class = YM_INPUT_CLASS;
860 dip->next = dip->index + 7;
862 strcpy(dip->label.name,
863 mixer_port_names[dip->index - YM_DAC_LVL]);
865 if (dip->index == YM_SPEAKER_LVL ||
866 dip->index == YM_MIC_LVL)
867 dip->un.v.num_channels = 1;
869 dip->un.v.num_channels = 2;
871 if (dip->index == YM_SPEAKER_LVL)
872 dip->un.v.delta = 1 << (8 - 4 /* valid bits */);
873 else if (dip->index == YM_DAC_LVL ||
874 dip->index == YM_MONITOR_LVL)
875 dip->un.v.delta = 1 << (8 - 6 /* valid bits */);
877 dip->un.v.delta = 1 << (8 - 5 /* valid bits */);
879 strcpy(dip->un.v.units.name, AudioNvolume);
889 if (dip->index == YM_MONITOR_MUTE)
890 dip->mixer_class = YM_MONITOR_CLASS;
892 dip->mixer_class = YM_INPUT_CLASS;
893 dip->type = AUDIO_MIXER_ENUM;
894 dip->prev = dip->index - 7;
896 strcpy(dip->label.name, AudioNmute);
897 dip->un.e.num_mem = 2;
898 strcpy(dip->un.e.member[0].label.name, AudioNoff);
899 dip->un.e.member[0].ord = 0;
900 strcpy(dip->un.e.member[1].label.name, AudioNon);
901 dip->un.e.member[1].ord = 1;
906 dip->type = AUDIO_MIXER_VALUE;
907 dip->mixer_class = YM_OUTPUT_CLASS;
908 dip->next = YM_OUTPUT_MUTE;
909 strcpy(dip->label.name, AudioNmaster);
910 dip->un.v.num_channels = 2;
911 dip->un.v.delta = (AUDIO_MAX_GAIN + 1) / (SA3_VOL_MV + 1);
912 strcpy(dip->un.v.units.name, AudioNvolume);
916 dip->mixer_class = YM_OUTPUT_CLASS;
917 dip->type = AUDIO_MIXER_ENUM;
918 dip->prev = YM_OUTPUT_LVL;
923 dip->type = AUDIO_MIXER_VALUE;
924 dip->mixer_class = YM_RECORD_CLASS;
925 dip->next = YM_RECORD_SOURCE;
926 strcpy(dip->label.name, AudioNrecord);
927 dip->un.v.num_channels = 2;
928 dip->un.v.delta = 1 << (8 - 4 /* valid bits */);
929 strcpy(dip->un.v.units.name, AudioNvolume);
933 dip->mixer_class = YM_RECORD_CLASS;
934 dip->type = AUDIO_MIXER_ENUM;
935 dip->prev = YM_REC_LVL;
936 strcpy(dip->label.name, AudioNsource);
937 dip->un.e.num_mem = 4;
938 strcpy(dip->un.e.member[0].label.name, AudioNmicrophone);
939 dip->un.e.member[0].ord = MIC_IN_PORT;
940 strcpy(dip->un.e.member[1].label.name, AudioNline);
941 dip->un.e.member[1].ord = LINE_IN_PORT;
942 strcpy(dip->un.e.member[2].label.name, AudioNdac);
943 dip->un.e.member[2].ord = DAC_IN_PORT;
944 strcpy(dip->un.e.member[3].label.name, AudioNcd);
945 dip->un.e.member[3].ord = AUX1_IN_PORT;
950 dip->type = AUDIO_MIXER_ENUM;
951 dip->mixer_class = YM_EQ_CLASS;
952 strcpy(dip->label.name, AudioNmode);
953 strcpy(dip->un.v.units.name, AudioNmode);
954 dip->un.e.num_mem = 4;
955 strcpy(dip->un.e.member[0].label.name, AudioNdesktop);
956 dip->un.e.member[0].ord = SA3_SYS_CTL_YMODE0;
957 strcpy(dip->un.e.member[1].label.name, AudioNlaptop);
958 dip->un.e.member[1].ord = SA3_SYS_CTL_YMODE1;
959 strcpy(dip->un.e.member[2].label.name, AudioNsubnote);
960 dip->un.e.member[2].ord = SA3_SYS_CTL_YMODE2;
961 strcpy(dip->un.e.member[3].label.name, AudioNhifi);
962 dip->un.e.member[3].ord = SA3_SYS_CTL_YMODE3;
966 dip->type = AUDIO_MIXER_VALUE;
967 dip->mixer_class = YM_EQ_CLASS;
968 strcpy(dip->label.name, AudioNtreble);
969 dip->un.v.num_channels = 2;
970 dip->un.v.delta = (AUDIO_MAX_GAIN + 1) / (SA3_3D_BITS + 1)
972 strcpy(dip->un.v.units.name, AudioNtreble);
976 dip->type = AUDIO_MIXER_VALUE;
977 dip->mixer_class = YM_EQ_CLASS;
978 strcpy(dip->label.name, AudioNbass);
979 dip->un.v.num_channels = 2;
980 dip->un.v.delta = (AUDIO_MAX_GAIN + 1) / (SA3_3D_BITS + 1)
982 strcpy(dip->un.v.units.name, AudioNbass);
986 dip->type = AUDIO_MIXER_VALUE;
987 dip->mixer_class = YM_EQ_CLASS;
988 strcpy(dip->label.name, AudioNsurround);
989 dip->un.v.num_channels = 2;
990 dip->un.v.delta = (AUDIO_MAX_GAIN + 1) / (SA3_3D_BITS + 1);
991 strcpy(dip->un.v.units.name, AudioNsurround);
997 dip->type = AUDIO_MIXER_ENUM;
998 dip->mixer_class = YM_PWR_CLASS;
999 dip->next = YM_PWR_TIMEOUT;
1000 strcpy(dip->label.name, AudioNsave);
1001 dip->un.e.num_mem = 3;
1002 strcpy(dip->un.e.member[0].label.name, AudioNpowerdown);
1003 dip->un.e.member[0].ord = YM_POWER_POWERDOWN;
1004 strcpy(dip->un.e.member[1].label.name, AudioNpowersave);
1005 dip->un.e.member[1].ord = YM_POWER_POWERSAVE;
1006 strcpy(dip->un.e.member[2].label.name, AudioNnosave);
1007 dip->un.e.member[2].ord = YM_POWER_NOSAVE;
1011 dip->type = AUDIO_MIXER_VALUE;
1012 dip->mixer_class = YM_PWR_CLASS;
1013 dip->prev = YM_PWR_MODE;
1014 strcpy(dip->label.name, AudioNtimeout);
1015 dip->un.v.num_channels = 1;
1016 strcpy(dip->un.v.units.name, AudioNtimeout);