Lines Matching defs:kcontrol

70 static int ac97_surround_jack_mode_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
77 static int ac97_surround_jack_mode_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
79 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
85 static int ac97_surround_jack_mode_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
87 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
99 static int ac97_channel_mode_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
103 return snd_ctl_enum_info(uinfo, 1, kcontrol->private_value, texts);
106 static int ac97_channel_mode_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
108 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
114 static int ac97_channel_mode_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
116 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
119 if (mode >= kcontrol->private_value)
215 static int snd_ac97_ymf7x3_info_speaker(struct snd_kcontrol *kcontrol,
225 static int snd_ac97_ymf7x3_get_speaker(struct snd_kcontrol *kcontrol,
228 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
239 static int snd_ac97_ymf7x3_put_speaker(struct snd_kcontrol *kcontrol,
242 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
262 static int snd_ac97_ymf7x3_spdif_source_info(struct snd_kcontrol *kcontrol,
270 static int snd_ac97_ymf7x3_spdif_source_get(struct snd_kcontrol *kcontrol,
273 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
281 static int snd_ac97_ymf7x3_spdif_source_put(struct snd_kcontrol *kcontrol,
284 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
365 static int snd_ac97_ymf753_spdif_output_pin_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
372 static int snd_ac97_ymf753_spdif_output_pin_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
374 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
382 static int snd_ac97_ymf753_spdif_output_pin_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
384 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
956 static int snd_ac97_stac9708_put_bias(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
958 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
1061 static int snd_ac97_stac9758_output_jack_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
1070 static int snd_ac97_stac9758_output_jack_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
1072 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
1073 int shift = kcontrol->private_value;
1084 static int snd_ac97_stac9758_output_jack_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
1086 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
1087 int shift = kcontrol->private_value;
1100 static int snd_ac97_stac9758_input_jack_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
1109 static int snd_ac97_stac9758_input_jack_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
1111 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
1112 int shift = kcontrol->private_value;
1120 static int snd_ac97_stac9758_input_jack_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
1122 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
1123 int shift = kcontrol->private_value;
1129 static int snd_ac97_stac9758_phonesel_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
1138 static int snd_ac97_stac9758_phonesel_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
1140 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
1146 static int snd_ac97_stac9758_phonesel_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
1148 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
1748 static int snd_ac97_ad198x_spdif_source_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
1755 static int snd_ac97_ad198x_spdif_source_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
1757 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
1765 static int snd_ac97_ad198x_spdif_source_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
1767 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
1906 static int snd_ac97_ad1888_lohpsel_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
1908 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
1919 static int snd_ac97_ad1888_lohpsel_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
1921 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
1932 static int snd_ac97_ad1888_downmix_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
1939 static int snd_ac97_ad1888_downmix_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
1941 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
1952 static int snd_ac97_ad1888_downmix_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
1954 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
2084 static int snd_ac97_ad1985_vrefout_info(struct snd_kcontrol *kcontrol,
2094 static int snd_ac97_ad1985_vrefout_get(struct snd_kcontrol *kcontrol,
2098 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
2106 static int snd_ac97_ad1985_vrefout_put(struct snd_kcontrol *kcontrol,
2110 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
2214 static int snd_ac97_ad1986_lososel_get(struct snd_kcontrol *kcontrol,
2217 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
2225 static int snd_ac97_ad1986_lososel_put(struct snd_kcontrol *kcontrol,
2228 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
2250 static int snd_ac97_ad1986_spread_get(struct snd_kcontrol *kcontrol,
2253 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
2261 static int snd_ac97_ad1986_spread_put(struct snd_kcontrol *kcontrol,
2264 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
2286 static int snd_ac97_ad1986_miclisel_get(struct snd_kcontrol *kcontrol,
2289 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
2295 static int snd_ac97_ad1986_miclisel_put(struct snd_kcontrol *kcontrol,
2298 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
2310 static int snd_ac97_ad1986_vrefout_get(struct snd_kcontrol *kcontrol,
2314 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
2329 static int snd_ac97_ad1986_vrefout_put(struct snd_kcontrol *kcontrol,
2332 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
2524 static int alc650_swap_surround_put(struct snd_kcontrol *kcontrol,
2527 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
2536 return snd_ac97_put_volsw(kcontrol, ucontrol);
2683 static int alc655_iec958_route_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
2691 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
2699 static int alc655_iec958_route_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
2701 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
2712 static int alc655_iec958_route_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
2714 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
2980 static int snd_ac97_cmedia_spdif_playback_source_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
2987 static int snd_ac97_cmedia_spdif_playback_source_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
2989 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
2997 static int snd_ac97_cmedia_spdif_playback_source_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
2999 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
3154 static int cm9761_spdif_out_source_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
3161 static int cm9761_spdif_out_source_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
3163 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
3174 static int cm9761_spdif_out_source_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
3176 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol);
3491 static int snd_ac97_vt1617a_smart51_info(struct snd_kcontrol *kcontrol,
3507 static int snd_ac97_vt1617a_smart51_get(struct snd_kcontrol *kcontrol,
3514 pac97 = snd_kcontrol_chip(kcontrol); /* grab codec handle */
3527 static int snd_ac97_vt1617a_smart51_put(struct snd_kcontrol *kcontrol,
3534 pac97 = snd_kcontrol_chip(kcontrol); /* grab codec handle */
3665 static int snd_ac97_vt1618_UAJ_info(struct snd_kcontrol *kcontrol,
3669 vt1618_uaj[kcontrol->private_value].items);
3676 static int snd_ac97_vt1618_UAJ_get(struct snd_kcontrol *kcontrol,
3680 struct snd_ac97 *pac97 = snd_kcontrol_chip(kcontrol);
3688 vt1618_uaj[kcontrol->private_value].mask;
3694 vt1618_uaj[kcontrol->private_value].shift;
3699 static int snd_ac97_vt1618_UAJ_put(struct snd_kcontrol *kcontrol,
3702 return ac97_update_bits_page(snd_kcontrol_chip(kcontrol), 0x60,
3703 vt1618_uaj[kcontrol->private_value].mask,
3705 vt1618_uaj[kcontrol->private_value].shift,
3711 static int snd_ac97_vt1618_aux_info(struct snd_kcontrol *kcontrol,
3719 static int snd_ac97_vt1618_aux_get(struct snd_kcontrol *kcontrol,
3723 (snd_ac97_read(snd_kcontrol_chip(kcontrol), 0x5c) & 0x0008)>>3;
3727 static int snd_ac97_vt1618_aux_put(struct snd_kcontrol *kcontrol,
3732 snd_ac97_update_bits(snd_kcontrol_chip(kcontrol), 0x5c, 0x0008,
3737 return snd_ac97_update_bits(snd_kcontrol_chip(kcontrol), 0x76, 0x0008,