Home | History | Annotate | Download | only in isa

Lines Matching refs:dip

809 ym_query_devinfo(void *addr, mixer_devinfo_t *dip)
821 if (!YM_IS_SA3(sc) && YM_MIXER_SA3_ONLY(dip->index))
824 dip->next = dip->prev = AUDIO_MIXER_LAST;
826 switch(dip->index) {
835 dip->type = AUDIO_MIXER_CLASS;
836 dip->mixer_class = dip->index;
837 strcpy(dip->label.name,
838 mixer_classes[dip->index - YM_INPUT_CLASS]);
848 dip->type = AUDIO_MIXER_VALUE;
849 if (dip->index == YM_MONITOR_LVL)
850 dip->mixer_class = YM_MONITOR_CLASS;
852 dip->mixer_class = YM_INPUT_CLASS;
854 dip->next = dip->index + 7;
856 strcpy(dip->label.name,
857 mixer_port_names[dip->index - YM_DAC_LVL]);
859 if (dip->index == YM_SPEAKER_LVL ||
860 dip->index == YM_MIC_LVL)
861 dip->un.v.num_channels = 1;
863 dip->un.v.num_channels = 2;
865 if (dip->index == YM_SPEAKER_LVL)
866 dip->un.v.delta = 1 << (8 - 4 /* valid bits */);
867 else if (dip->index == YM_DAC_LVL ||
868 dip->index == YM_MONITOR_LVL)
869 dip->un.v.delta = 1 << (8 - 6 /* valid bits */);
871 dip->un.v.delta = 1 << (8 - 5 /* valid bits */);
873 strcpy(dip->un.v.units.name, AudioNvolume);
883 if (dip->index == YM_MONITOR_MUTE)
884 dip->mixer_class = YM_MONITOR_CLASS;
886 dip->mixer_class = YM_INPUT_CLASS;
887 dip->type = AUDIO_MIXER_ENUM;
888 dip->prev = dip->index - 7;
890 strcpy(dip->label.name, AudioNmute);
891 dip->un.e.num_mem = 2;
892 strcpy(dip->un.e.member[0].label.name, AudioNoff);
893 dip->un.e.member[0].ord = 0;
894 strcpy(dip->un.e.member[1].label.name, AudioNon);
895 dip->un.e.member[1].ord = 1;
900 dip->type = AUDIO_MIXER_VALUE;
901 dip->mixer_class = YM_OUTPUT_CLASS;
902 dip->next = YM_OUTPUT_MUTE;
903 strcpy(dip->label.name, AudioNmaster);
904 dip->un.v.num_channels = 2;
905 dip->un.v.delta = (AUDIO_MAX_GAIN + 1) / (SA3_VOL_MV + 1);
906 strcpy(dip->un.v.units.name, AudioNvolume);
910 dip->mixer_class = YM_OUTPUT_CLASS;
911 dip->type = AUDIO_MIXER_ENUM;
912 dip->prev = YM_OUTPUT_LVL;
917 dip->type = AUDIO_MIXER_VALUE;
918 dip->mixer_class = YM_RECORD_CLASS;
919 dip->next = YM_RECORD_SOURCE;
920 strcpy(dip->label.name, AudioNrecord);
921 dip->un.v.num_channels = 2;
922 dip->un.v.delta = 1 << (8 - 4 /* valid bits */);
923 strcpy(dip->un.v.units.name, AudioNvolume);
927 dip->mixer_class = YM_RECORD_CLASS;
928 dip->type = AUDIO_MIXER_ENUM;
929 dip->prev = YM_REC_LVL;
930 strcpy(dip->label.name, AudioNsource);
931 dip->un.e.num_mem = 4;
932 strcpy(dip->un.e.member[0].label.name, AudioNmicrophone);
933 dip->un.e.member[0].ord = MIC_IN_PORT;
934 strcpy(dip->un.e.member[1].label.name, AudioNline);
935 dip->un.e.member[1].ord = LINE_IN_PORT;
936 strcpy(dip->un.e.member[2].label.name, AudioNdac);
937 dip->un.e.member[2].ord = DAC_IN_PORT;
938 strcpy(dip->un.e.member[3].label.name, AudioNcd);
939 dip->un.e.member[3].ord = AUX1_IN_PORT;
944 dip->type = AUDIO_MIXER_ENUM;
945 dip->mixer_class = YM_EQ_CLASS;
946 strcpy(dip->label.name, AudioNmode);
947 strcpy(dip->un.v.units.name, AudioNmode);
948 dip->un.e.num_mem = 4;
949 strcpy(dip->un.e.member[0].label.name, AudioNdesktop);
950 dip->un.e.member[0].ord = SA3_SYS_CTL_YMODE0;
951 strcpy(dip->un.e.member[1].label.name, AudioNlaptop);
952 dip->un.e.member[1].ord = SA3_SYS_CTL_YMODE1;
953 strcpy(dip->un.e.member[2].label.name, AudioNsubnote);
954 dip->un.e.member[2].ord = SA3_SYS_CTL_YMODE2;
955 strcpy(dip->un.e.member[3].label.name, AudioNhifi);
956 dip->un.e.member[3].ord = SA3_SYS_CTL_YMODE3;
960 dip->type = AUDIO_MIXER_VALUE;
961 dip->mixer_class = YM_EQ_CLASS;
962 strcpy(dip->label.name, AudioNtreble);
963 dip->un.v.num_channels = 2;
964 dip->un.v.delta = (AUDIO_MAX_GAIN + 1) / (SA3_3D_BITS + 1)
966 strcpy(dip->un.v.units.name, AudioNtreble);
970 dip->type = AUDIO_MIXER_VALUE;
971 dip->mixer_class = YM_EQ_CLASS;
972 strcpy(dip->label.name, AudioNbass);
973 dip->un.v.num_channels = 2;
974 dip->un.v.delta = (AUDIO_MAX_GAIN + 1) / (SA3_3D_BITS + 1)
976 strcpy(dip->un.v.units.name, AudioNbass);
980 dip->type = AUDIO_MIXER_VALUE;
981 dip->mixer_class = YM_EQ_CLASS;
982 strcpy(dip->label.name, AudioNsurround);
983 dip->un.v.num_channels = 2;
984 dip->un.v.delta = (AUDIO_MAX_GAIN + 1) / (SA3_3D_BITS + 1);
985 strcpy(dip->un.v.units.name, AudioNsurround);
991 dip->type = AUDIO_MIXER_ENUM;
992 dip->mixer_class = YM_PWR_CLASS;
993 dip->next = YM_PWR_TIMEOUT;
994 strcpy(dip->label.name, AudioNsave);
995 dip->un.e.num_mem = 3;
996 strcpy(dip->un.e.member[0].label.name, AudioNpowerdown);
997 dip->un.e.member[0].ord = YM_POWER_POWERDOWN;
998 strcpy(dip->un.e.member[1].label.name, AudioNpowersave);
999 dip->un.e.member[1].ord = YM_POWER_POWERSAVE;
1000 strcpy(dip->un.e.member[2].label.name, AudioNnosave);
1001 dip->un.e.member[2].ord = YM_POWER_NOSAVE;
1005 dip->type = AUDIO_MIXER_VALUE;
1006 dip->mixer_class = YM_PWR_CLASS;
1007 dip->prev = YM_PWR_MODE;
1008 strcpy(dip->label.name, AudioNtimeout);
1009 dip->un.v.num_channels = 1;
1010 strcpy(dip->un.v.units.name, AudioNtimeout);