Lines Matching defs:kcontrol
72 static int ac97_surround_jack_mode_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
79 static int ac97_surround_jack_mode_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
81 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
87 static int ac97_surround_jack_mode_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
89 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
101 static int ac97_channel_mode_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
105 return snd_ctl_enum_info(uinfo, 1, kcontrol->private_value, texts);
108 static int ac97_channel_mode_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
110 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
116 static int ac97_channel_mode_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
118 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
121 if (mode >= kcontrol->private_value)
217 static int snd_ac97_ymf7x3_info_speaker(struct snd_kcontrol *kcontrol,
227 static int snd_ac97_ymf7x3_get_speaker(struct snd_kcontrol *kcontrol,
230 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
241 static int snd_ac97_ymf7x3_put_speaker(struct snd_kcontrol *kcontrol,
244 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
264 static int snd_ac97_ymf7x3_spdif_source_info(struct snd_kcontrol *kcontrol,
272 static int snd_ac97_ymf7x3_spdif_source_get(struct snd_kcontrol *kcontrol,
275 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
283 static int snd_ac97_ymf7x3_spdif_source_put(struct snd_kcontrol *kcontrol,
286 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
367 static int snd_ac97_ymf753_spdif_output_pin_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
374 static int snd_ac97_ymf753_spdif_output_pin_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
376 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
384 static int snd_ac97_ymf753_spdif_output_pin_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
386 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
977 static int snd_ac97_stac9708_put_bias(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
979 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
1083 static int snd_ac97_stac9758_output_jack_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
1092 static int snd_ac97_stac9758_output_jack_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
1094 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
1095 int shift = kcontrol->private_value;
1106 static int snd_ac97_stac9758_output_jack_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
1108 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
1109 int shift = kcontrol->private_value;
1122 static int snd_ac97_stac9758_input_jack_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
1131 static int snd_ac97_stac9758_input_jack_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
1133 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
1134 int shift = kcontrol->private_value;
1142 static int snd_ac97_stac9758_input_jack_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
1144 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
1145 int shift = kcontrol->private_value;
1151 static int snd_ac97_stac9758_phonesel_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
1160 static int snd_ac97_stac9758_phonesel_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
1162 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
1168 static int snd_ac97_stac9758_phonesel_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
1170 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
1776 static int snd_ac97_ad198x_spdif_source_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
1783 static int snd_ac97_ad198x_spdif_source_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
1785 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
1793 static int snd_ac97_ad198x_spdif_source_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
1795 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
1935 static int snd_ac97_ad1888_lohpsel_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
1937 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
1948 static int snd_ac97_ad1888_lohpsel_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
1950 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
1961 static int snd_ac97_ad1888_downmix_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
1968 static int snd_ac97_ad1888_downmix_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
1970 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
1981 static int snd_ac97_ad1888_downmix_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
1983 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
2114 static int snd_ac97_ad1985_vrefout_info(struct snd_kcontrol *kcontrol,
2124 static int snd_ac97_ad1985_vrefout_get(struct snd_kcontrol *kcontrol,
2128 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
2136 static int snd_ac97_ad1985_vrefout_put(struct snd_kcontrol *kcontrol,
2140 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
2245 static int snd_ac97_ad1986_lososel_get(struct snd_kcontrol *kcontrol,
2248 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
2256 static int snd_ac97_ad1986_lososel_put(struct snd_kcontrol *kcontrol,
2259 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
2281 static int snd_ac97_ad1986_spread_get(struct snd_kcontrol *kcontrol,
2284 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
2292 static int snd_ac97_ad1986_spread_put(struct snd_kcontrol *kcontrol,
2295 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
2317 static int snd_ac97_ad1986_miclisel_get(struct snd_kcontrol *kcontrol,
2320 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
2326 static int snd_ac97_ad1986_miclisel_put(struct snd_kcontrol *kcontrol,
2329 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
2341 static int snd_ac97_ad1986_vrefout_get(struct snd_kcontrol *kcontrol,
2345 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
2360 static int snd_ac97_ad1986_vrefout_put(struct snd_kcontrol *kcontrol,
2363 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
2556 static int alc650_swap_surround_put(struct snd_kcontrol *kcontrol,
2559 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
2568 return snd_ac97_put_volsw(kcontrol, ucontrol);
2717 static int alc655_iec958_route_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
2725 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
2733 static int alc655_iec958_route_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
2735 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
2746 static int alc655_iec958_route_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
2748 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
3018 static int snd_ac97_cmedia_spdif_playback_source_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
3025 static int snd_ac97_cmedia_spdif_playback_source_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
3027 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
3035 static int snd_ac97_cmedia_spdif_playback_source_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
3037 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
3192 static int cm9761_spdif_out_source_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
3199 static int cm9761_spdif_out_source_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
3201 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
3212 static int cm9761_spdif_out_source_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
3214 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
3514 static int snd_ac97_vt1617a_smart51_info(struct snd_kcontrol *kcontrol,
3530 static int snd_ac97_vt1617a_smart51_get(struct snd_kcontrol *kcontrol,
3537 pac97 = snd_kcontrol_chip(kcontrol); /* grab codec handle */
3550 static int snd_ac97_vt1617a_smart51_put(struct snd_kcontrol *kcontrol,
3557 pac97 = snd_kcontrol_chip(kcontrol); /* grab codec handle */
3688 static int snd_ac97_vt1618_UAJ_info(struct snd_kcontrol *kcontrol,
3692 vt1618_uaj[kcontrol->private_value].items);
3699 static int snd_ac97_vt1618_UAJ_get(struct snd_kcontrol *kcontrol,
3703 struct snd_ac97 *pac97 = snd_kcontrol_chip(kcontrol);
3711 vt1618_uaj[kcontrol->private_value].mask;
3717 vt1618_uaj[kcontrol->private_value].shift;
3722 static int snd_ac97_vt1618_UAJ_put(struct snd_kcontrol *kcontrol,
3725 return ac97_update_bits_page(snd_kcontrol_chip(kcontrol), 0x60,
3726 vt1618_uaj[kcontrol->private_value].mask,
3728 vt1618_uaj[kcontrol->private_value].shift,
3734 static int snd_ac97_vt1618_aux_info(struct snd_kcontrol *kcontrol,
3742 static int snd_ac97_vt1618_aux_get(struct snd_kcontrol *kcontrol,
3746 (snd_ac97_read(snd_kcontrol_chip(kcontrol), 0x5c) & 0x0008)>>3;
3750 static int snd_ac97_vt1618_aux_put(struct snd_kcontrol *kcontrol,
3755 snd_ac97_update_bits(snd_kcontrol_chip(kcontrol), 0x5c, 0x0008,
3760 return snd_ac97_update_bits(snd_kcontrol_chip(kcontrol), 0x76, 0x0008,