Lines Matching refs:kcontrol
85 static int ac97_surround_jack_mode_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *ui… in ac97_surround_jack_mode_info() argument
92 static int ac97_surround_jack_mode_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *uc… in ac97_surround_jack_mode_get() argument
94 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); in ac97_surround_jack_mode_get()
100 static int ac97_surround_jack_mode_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *uc… in ac97_surround_jack_mode_put() argument
102 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); in ac97_surround_jack_mode_put()
114 static int ac97_channel_mode_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in ac97_channel_mode_info() argument
118 return snd_ctl_enum_info(uinfo, 1, kcontrol->private_value, texts); in ac97_channel_mode_info()
121 static int ac97_channel_mode_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in ac97_channel_mode_get() argument
123 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); in ac97_channel_mode_get()
129 static int ac97_channel_mode_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in ac97_channel_mode_put() argument
131 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); in ac97_channel_mode_put()
134 if (mode >= kcontrol->private_value) in ac97_channel_mode_put()
230 static int snd_ac97_ymf7x3_info_speaker(struct snd_kcontrol *kcontrol, in snd_ac97_ymf7x3_info_speaker() argument
240 static int snd_ac97_ymf7x3_get_speaker(struct snd_kcontrol *kcontrol, in snd_ac97_ymf7x3_get_speaker() argument
243 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); in snd_ac97_ymf7x3_get_speaker()
254 static int snd_ac97_ymf7x3_put_speaker(struct snd_kcontrol *kcontrol, in snd_ac97_ymf7x3_put_speaker() argument
257 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); in snd_ac97_ymf7x3_put_speaker()
277 static int snd_ac97_ymf7x3_spdif_source_info(struct snd_kcontrol *kcontrol, in snd_ac97_ymf7x3_spdif_source_info() argument
285 static int snd_ac97_ymf7x3_spdif_source_get(struct snd_kcontrol *kcontrol, in snd_ac97_ymf7x3_spdif_source_get() argument
288 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); in snd_ac97_ymf7x3_spdif_source_get()
296 static int snd_ac97_ymf7x3_spdif_source_put(struct snd_kcontrol *kcontrol, in snd_ac97_ymf7x3_spdif_source_put() argument
299 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); in snd_ac97_ymf7x3_spdif_source_put()
380 static int snd_ac97_ymf753_spdif_output_pin_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem… in snd_ac97_ymf753_spdif_output_pin_info() argument
387 static int snd_ac97_ymf753_spdif_output_pin_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_… in snd_ac97_ymf753_spdif_output_pin_get() argument
389 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); in snd_ac97_ymf753_spdif_output_pin_get()
397 static int snd_ac97_ymf753_spdif_output_pin_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_… in snd_ac97_ymf753_spdif_output_pin_put() argument
399 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); in snd_ac97_ymf753_spdif_output_pin_put()
971 static int snd_ac97_stac9708_put_bias(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *uco… in snd_ac97_stac9708_put_bias() argument
973 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); in snd_ac97_stac9708_put_bias()
1076 static int snd_ac97_stac9758_output_jack_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_in… in snd_ac97_stac9758_output_jack_info() argument
1085 static int snd_ac97_stac9758_output_jack_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_val… in snd_ac97_stac9758_output_jack_get() argument
1087 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); in snd_ac97_stac9758_output_jack_get()
1088 int shift = kcontrol->private_value; in snd_ac97_stac9758_output_jack_get()
1099 static int snd_ac97_stac9758_output_jack_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_val… in snd_ac97_stac9758_output_jack_put() argument
1101 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); in snd_ac97_stac9758_output_jack_put()
1102 int shift = kcontrol->private_value; in snd_ac97_stac9758_output_jack_put()
1115 static int snd_ac97_stac9758_input_jack_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_inf… in snd_ac97_stac9758_input_jack_info() argument
1124 static int snd_ac97_stac9758_input_jack_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_valu… in snd_ac97_stac9758_input_jack_get() argument
1126 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); in snd_ac97_stac9758_input_jack_get()
1127 int shift = kcontrol->private_value; in snd_ac97_stac9758_input_jack_get()
1135 static int snd_ac97_stac9758_input_jack_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_valu… in snd_ac97_stac9758_input_jack_put() argument
1137 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); in snd_ac97_stac9758_input_jack_put()
1138 int shift = kcontrol->private_value; in snd_ac97_stac9758_input_jack_put()
1144 static int snd_ac97_stac9758_phonesel_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info … in snd_ac97_stac9758_phonesel_info() argument
1153 static int snd_ac97_stac9758_phonesel_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value … in snd_ac97_stac9758_phonesel_get() argument
1155 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); in snd_ac97_stac9758_phonesel_get()
1161 static int snd_ac97_stac9758_phonesel_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value … in snd_ac97_stac9758_phonesel_put() argument
1163 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); in snd_ac97_stac9758_phonesel_put()
1763 static int snd_ac97_ad198x_spdif_source_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_inf… in snd_ac97_ad198x_spdif_source_info() argument
1770 static int snd_ac97_ad198x_spdif_source_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_valu… in snd_ac97_ad198x_spdif_source_get() argument
1772 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); in snd_ac97_ad198x_spdif_source_get()
1780 static int snd_ac97_ad198x_spdif_source_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_valu… in snd_ac97_ad198x_spdif_source_put() argument
1782 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); in snd_ac97_ad198x_spdif_source_put()
1921 static int snd_ac97_ad1888_lohpsel_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *uc… in snd_ac97_ad1888_lohpsel_get() argument
1923 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); in snd_ac97_ad1888_lohpsel_get()
1934 static int snd_ac97_ad1888_lohpsel_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *uc… in snd_ac97_ad1888_lohpsel_put() argument
1936 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); in snd_ac97_ad1888_lohpsel_put()
1947 static int snd_ac97_ad1888_downmix_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *ui… in snd_ac97_ad1888_downmix_info() argument
1954 static int snd_ac97_ad1888_downmix_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *uc… in snd_ac97_ad1888_downmix_get() argument
1956 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); in snd_ac97_ad1888_downmix_get()
1967 static int snd_ac97_ad1888_downmix_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *uc… in snd_ac97_ad1888_downmix_put() argument
1969 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); in snd_ac97_ad1888_downmix_put()
2099 static int snd_ac97_ad1985_vrefout_info(struct snd_kcontrol *kcontrol, in snd_ac97_ad1985_vrefout_info() argument
2109 static int snd_ac97_ad1985_vrefout_get(struct snd_kcontrol *kcontrol, in snd_ac97_ad1985_vrefout_get() argument
2113 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); in snd_ac97_ad1985_vrefout_get()
2121 static int snd_ac97_ad1985_vrefout_put(struct snd_kcontrol *kcontrol, in snd_ac97_ad1985_vrefout_put() argument
2125 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); in snd_ac97_ad1985_vrefout_put()
2229 static int snd_ac97_ad1986_lososel_get(struct snd_kcontrol *kcontrol, in snd_ac97_ad1986_lososel_get() argument
2232 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); in snd_ac97_ad1986_lososel_get()
2240 static int snd_ac97_ad1986_lososel_put(struct snd_kcontrol *kcontrol, in snd_ac97_ad1986_lososel_put() argument
2243 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); in snd_ac97_ad1986_lososel_put()
2265 static int snd_ac97_ad1986_spread_get(struct snd_kcontrol *kcontrol, in snd_ac97_ad1986_spread_get() argument
2268 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); in snd_ac97_ad1986_spread_get()
2276 static int snd_ac97_ad1986_spread_put(struct snd_kcontrol *kcontrol, in snd_ac97_ad1986_spread_put() argument
2279 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); in snd_ac97_ad1986_spread_put()
2301 static int snd_ac97_ad1986_miclisel_get(struct snd_kcontrol *kcontrol, in snd_ac97_ad1986_miclisel_get() argument
2304 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); in snd_ac97_ad1986_miclisel_get()
2310 static int snd_ac97_ad1986_miclisel_put(struct snd_kcontrol *kcontrol, in snd_ac97_ad1986_miclisel_put() argument
2313 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); in snd_ac97_ad1986_miclisel_put()
2325 static int snd_ac97_ad1986_vrefout_get(struct snd_kcontrol *kcontrol, in snd_ac97_ad1986_vrefout_get() argument
2329 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); in snd_ac97_ad1986_vrefout_get()
2344 static int snd_ac97_ad1986_vrefout_put(struct snd_kcontrol *kcontrol, in snd_ac97_ad1986_vrefout_put() argument
2347 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); in snd_ac97_ad1986_vrefout_put()
2539 static int alc650_swap_surround_put(struct snd_kcontrol *kcontrol, in alc650_swap_surround_put() argument
2542 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); in alc650_swap_surround_put()
2551 return snd_ac97_put_volsw(kcontrol, ucontrol); in alc650_swap_surround_put()
2698 static int alc655_iec958_route_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in alc655_iec958_route_info() argument
2706 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); in alc655_iec958_route_info()
2714 static int alc655_iec958_route_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontr… in alc655_iec958_route_get() argument
2716 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); in alc655_iec958_route_get()
2727 static int alc655_iec958_route_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontr… in alc655_iec958_route_put() argument
2729 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); in alc655_iec958_route_put()
2995 static int snd_ac97_cmedia_spdif_playback_source_info(struct snd_kcontrol *kcontrol, struct snd_ctl… in snd_ac97_cmedia_spdif_playback_source_info() argument
3002 static int snd_ac97_cmedia_spdif_playback_source_get(struct snd_kcontrol *kcontrol, struct snd_ctl_… in snd_ac97_cmedia_spdif_playback_source_get() argument
3004 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); in snd_ac97_cmedia_spdif_playback_source_get()
3012 static int snd_ac97_cmedia_spdif_playback_source_put(struct snd_kcontrol *kcontrol, struct snd_ctl_… in snd_ac97_cmedia_spdif_playback_source_put() argument
3014 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); in snd_ac97_cmedia_spdif_playback_source_put()
3169 static int cm9761_spdif_out_source_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *ui… in cm9761_spdif_out_source_info() argument
3176 static int cm9761_spdif_out_source_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *uc… in cm9761_spdif_out_source_get() argument
3178 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); in cm9761_spdif_out_source_get()
3189 static int cm9761_spdif_out_source_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *uc… in cm9761_spdif_out_source_put() argument
3191 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); in cm9761_spdif_out_source_put()
3506 static int snd_ac97_vt1617a_smart51_info(struct snd_kcontrol *kcontrol, in snd_ac97_vt1617a_smart51_info() argument
3522 static int snd_ac97_vt1617a_smart51_get(struct snd_kcontrol *kcontrol, in snd_ac97_vt1617a_smart51_get() argument
3529 pac97 = snd_kcontrol_chip(kcontrol); /* grab codec handle */ in snd_ac97_vt1617a_smart51_get()
3542 static int snd_ac97_vt1617a_smart51_put(struct snd_kcontrol *kcontrol, in snd_ac97_vt1617a_smart51_put() argument
3549 pac97 = snd_kcontrol_chip(kcontrol); /* grab codec handle */ in snd_ac97_vt1617a_smart51_put()
3680 static int snd_ac97_vt1618_UAJ_info(struct snd_kcontrol *kcontrol, in snd_ac97_vt1618_UAJ_info() argument
3684 vt1618_uaj[kcontrol->private_value].items); in snd_ac97_vt1618_UAJ_info()
3691 static int snd_ac97_vt1618_UAJ_get(struct snd_kcontrol *kcontrol, in snd_ac97_vt1618_UAJ_get() argument
3695 struct snd_ac97 *pac97 = snd_kcontrol_chip(kcontrol); in snd_ac97_vt1618_UAJ_get()
3703 vt1618_uaj[kcontrol->private_value].mask; in snd_ac97_vt1618_UAJ_get()
3709 vt1618_uaj[kcontrol->private_value].shift; in snd_ac97_vt1618_UAJ_get()
3714 static int snd_ac97_vt1618_UAJ_put(struct snd_kcontrol *kcontrol, in snd_ac97_vt1618_UAJ_put() argument
3717 return ac97_update_bits_page(snd_kcontrol_chip(kcontrol), 0x60, in snd_ac97_vt1618_UAJ_put()
3718 vt1618_uaj[kcontrol->private_value].mask, in snd_ac97_vt1618_UAJ_put()
3720 vt1618_uaj[kcontrol->private_value].shift, in snd_ac97_vt1618_UAJ_put()
3726 static int snd_ac97_vt1618_aux_info(struct snd_kcontrol *kcontrol, in snd_ac97_vt1618_aux_info() argument
3734 static int snd_ac97_vt1618_aux_get(struct snd_kcontrol *kcontrol, in snd_ac97_vt1618_aux_get() argument
3738 (snd_ac97_read(snd_kcontrol_chip(kcontrol), 0x5c) & 0x0008)>>3; in snd_ac97_vt1618_aux_get()
3742 static int snd_ac97_vt1618_aux_put(struct snd_kcontrol *kcontrol, in snd_ac97_vt1618_aux_put() argument
3747 snd_ac97_update_bits(snd_kcontrol_chip(kcontrol), 0x5c, 0x0008, in snd_ac97_vt1618_aux_put()
3752 return snd_ac97_update_bits(snd_kcontrol_chip(kcontrol), 0x76, 0x0008, in snd_ac97_vt1618_aux_put()