Lines Matching refs:ucontrol
92 …int ac97_surround_jack_mode_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in ac97_surround_jack_mode_get() argument
96 ucontrol->value.enumerated.item[0] = ac97->indep_surround; in ac97_surround_jack_mode_get()
100 …int ac97_surround_jack_mode_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in ac97_surround_jack_mode_put() argument
103 unsigned char indep = !!ucontrol->value.enumerated.item[0]; in ac97_surround_jack_mode_put()
121 static int ac97_channel_mode_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in ac97_channel_mode_get() argument
125 ucontrol->value.enumerated.item[0] = ac97->channel_mode; 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
132 unsigned char mode = ucontrol->value.enumerated.item[0]; in ac97_channel_mode_put()
241 struct snd_ctl_elem_value *ucontrol) in snd_ac97_ymf7x3_get_speaker() argument
250 ucontrol->value.enumerated.item[0] = val; in snd_ac97_ymf7x3_get_speaker()
255 struct snd_ctl_elem_value *ucontrol) in snd_ac97_ymf7x3_put_speaker() argument
260 if (ucontrol->value.enumerated.item[0] > 2) in snd_ac97_ymf7x3_put_speaker()
262 val = (ucontrol->value.enumerated.item[0] + 1) << 10; in snd_ac97_ymf7x3_put_speaker()
286 struct snd_ctl_elem_value *ucontrol) in snd_ac97_ymf7x3_spdif_source_get() argument
292 ucontrol->value.enumerated.item[0] = (val >> 1) & 1; in snd_ac97_ymf7x3_spdif_source_get()
297 struct snd_ctl_elem_value *ucontrol) in snd_ac97_ymf7x3_spdif_source_put() argument
302 if (ucontrol->value.enumerated.item[0] > 1) in snd_ac97_ymf7x3_spdif_source_put()
304 val = ucontrol->value.enumerated.item[0] << 1; in snd_ac97_ymf7x3_spdif_source_put()
387 …c97_ymf753_spdif_output_pin_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ac97_ymf753_spdif_output_pin_get() argument
393 ucontrol->value.enumerated.item[0] = (val & 0x0008) ? 2 : (val & 0x0020) ? 1 : 0; in snd_ac97_ymf753_spdif_output_pin_get()
397 …c97_ymf753_spdif_output_pin_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ac97_ymf753_spdif_output_pin_put() argument
402 if (ucontrol->value.enumerated.item[0] > 2) in snd_ac97_ymf753_spdif_output_pin_put()
404 val = (ucontrol->value.enumerated.item[0] == 2) ? 0x0008 : in snd_ac97_ymf753_spdif_output_pin_put()
405 (ucontrol->value.enumerated.item[0] == 1) ? 0x0020 : 0; in snd_ac97_ymf753_spdif_output_pin_put()
971 … int snd_ac97_stac9708_put_bias(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ac97_stac9708_put_bias() argument
979 (ucontrol->value.integer.value[0] & 1) << 4); in snd_ac97_stac9708_put_bias()
1085 …d_ac97_stac9758_output_jack_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ac97_stac9758_output_jack_get() argument
1093 ucontrol->value.enumerated.item[0] = 0; in snd_ac97_stac9758_output_jack_get()
1095 ucontrol->value.enumerated.item[0] = 1 + (val & 3); in snd_ac97_stac9758_output_jack_get()
1099 …d_ac97_stac9758_output_jack_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ac97_stac9758_output_jack_put() argument
1105 if (ucontrol->value.enumerated.item[0] > 4) in snd_ac97_stac9758_output_jack_put()
1107 if (ucontrol->value.enumerated.item[0] == 0) in snd_ac97_stac9758_output_jack_put()
1110 val = 4 | (ucontrol->value.enumerated.item[0] - 1); in snd_ac97_stac9758_output_jack_put()
1124 …nd_ac97_stac9758_input_jack_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ac97_stac9758_input_jack_get() argument
1131 ucontrol->value.enumerated.item[0] = (val >> shift) & 7; in snd_ac97_stac9758_input_jack_get()
1135 …nd_ac97_stac9758_input_jack_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ac97_stac9758_input_jack_put() argument
1141 ucontrol->value.enumerated.item[0] << shift, 0); in snd_ac97_stac9758_input_jack_put()
1153 … snd_ac97_stac9758_phonesel_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ac97_stac9758_phonesel_get() argument
1157 ucontrol->value.enumerated.item[0] = ac97->regs[AC97_SIGMATEL_IOMISC] & 3; in snd_ac97_stac9758_phonesel_get()
1161 … snd_ac97_stac9758_phonesel_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ac97_stac9758_phonesel_put() argument
1166 ucontrol->value.enumerated.item[0], 0); in snd_ac97_stac9758_phonesel_put()
1770 …nd_ac97_ad198x_spdif_source_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ac97_ad198x_spdif_source_get() argument
1776 ucontrol->value.enumerated.item[0] = (val >> 2) & 1; in snd_ac97_ad198x_spdif_source_get()
1780 …nd_ac97_ad198x_spdif_source_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ac97_ad198x_spdif_source_put() argument
1785 if (ucontrol->value.enumerated.item[0] > 1) in snd_ac97_ad198x_spdif_source_put()
1787 val = ucontrol->value.enumerated.item[0] << 2; in snd_ac97_ad198x_spdif_source_put()
1921 …int snd_ac97_ad1888_lohpsel_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ac97_ad1888_lohpsel_get() argument
1927 ucontrol->value.integer.value[0] = !(val & AC97_AD198X_LOSEL); in snd_ac97_ad1888_lohpsel_get()
1929 ucontrol->value.integer.value[0] = in snd_ac97_ad1888_lohpsel_get()
1930 !ucontrol->value.integer.value[0]; in snd_ac97_ad1888_lohpsel_get()
1934 …int snd_ac97_ad1888_lohpsel_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ac97_ad1888_lohpsel_put() argument
1939 val = !ucontrol->value.integer.value[0]; in snd_ac97_ad1888_lohpsel_put()
1954 …int snd_ac97_ad1888_downmix_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ac97_ad1888_downmix_get() argument
1961 ucontrol->value.enumerated.item[0] = 0; in snd_ac97_ad1888_downmix_get()
1963 ucontrol->value.enumerated.item[0] = 1 + ((val >> 8) & 1); in snd_ac97_ad1888_downmix_get()
1967 …int snd_ac97_ad1888_downmix_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ac97_ad1888_downmix_put() argument
1972 if (ucontrol->value.enumerated.item[0] > 2) in snd_ac97_ad1888_downmix_put()
1974 if (ucontrol->value.enumerated.item[0] == 0) in snd_ac97_ad1888_downmix_put()
1978 ((ucontrol->value.enumerated.item[0] - 1) << 8); in snd_ac97_ad1888_downmix_put()
2110 struct snd_ctl_elem_value *ucontrol) in snd_ac97_ad1985_vrefout_get() argument
2117 ucontrol->value.enumerated.item[0] = reg2ctrl[val]; in snd_ac97_ad1985_vrefout_get()
2122 struct snd_ctl_elem_value *ucontrol) in snd_ac97_ad1985_vrefout_put() argument
2128 if (ucontrol->value.enumerated.item[0] > 3) in snd_ac97_ad1985_vrefout_put()
2130 val = ctrl2reg[ucontrol->value.enumerated.item[0]] in snd_ac97_ad1985_vrefout_put()
2230 struct snd_ctl_elem_value *ucontrol) in snd_ac97_ad1986_lososel_get() argument
2236 ucontrol->value.integer.value[0] = (val & AC97_AD1986_LOSEL) != 0; in snd_ac97_ad1986_lososel_get()
2241 struct snd_ctl_elem_value *ucontrol) in snd_ac97_ad1986_lososel_put() argument
2249 ucontrol->value.integer.value[0] != 0 in snd_ac97_ad1986_lososel_put()
2256 (ucontrol->value.integer.value[0] != 0 in snd_ac97_ad1986_lososel_put()
2266 struct snd_ctl_elem_value *ucontrol) in snd_ac97_ad1986_spread_get() argument
2272 ucontrol->value.integer.value[0] = (val & AC97_AD1986_SPRD) != 0; in snd_ac97_ad1986_spread_get()
2277 struct snd_ctl_elem_value *ucontrol) in snd_ac97_ad1986_spread_put() argument
2285 ucontrol->value.integer.value[0] != 0 in snd_ac97_ad1986_spread_put()
2292 (ucontrol->value.integer.value[0] != 0 in snd_ac97_ad1986_spread_put()
2302 struct snd_ctl_elem_value *ucontrol) in snd_ac97_ad1986_miclisel_get() argument
2306 ucontrol->value.integer.value[0] = ac97->spec.ad18xx.swap_mic_linein; in snd_ac97_ad1986_miclisel_get()
2311 struct snd_ctl_elem_value *ucontrol) in snd_ac97_ad1986_miclisel_put() argument
2314 unsigned char swap = ucontrol->value.integer.value[0] != 0; in snd_ac97_ad1986_miclisel_put()
2326 struct snd_ctl_elem_value *ucontrol) in snd_ac97_ad1986_vrefout_get() argument
2340 ucontrol->value.enumerated.item[0] = val; in snd_ac97_ad1986_vrefout_get()
2345 struct snd_ctl_elem_value *ucontrol) in snd_ac97_ad1986_vrefout_put() argument
2355 switch (ucontrol->value.enumerated.item[0]) in snd_ac97_ad1986_vrefout_put()
2540 struct snd_ctl_elem_value *ucontrol) in alc650_swap_surround_put() argument
2546 if (ucontrol->value.integer.value[0]) in alc650_swap_surround_put()
2551 return snd_ac97_put_volsw(kcontrol, ucontrol); in alc650_swap_surround_put()
2714 …tic int alc655_iec958_route_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in alc655_iec958_route_get() argument
2723 ucontrol->value.enumerated.item[0] = val; in alc655_iec958_route_get()
2727 …tic int alc655_iec958_route_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in alc655_iec958_route_put() argument
2732 (unsigned short)ucontrol->value.enumerated.item[0] << 12, in alc655_iec958_route_put()
3002 …media_spdif_playback_source_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ac97_cmedia_spdif_playback_source_get() argument
3008 ucontrol->value.enumerated.item[0] = (val >> 1) & 0x01; in snd_ac97_cmedia_spdif_playback_source_get()
3012 …media_spdif_playback_source_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ac97_cmedia_spdif_playback_source_put() argument
3018 (ucontrol->value.enumerated.item[0] & 0x01) << 1); in snd_ac97_cmedia_spdif_playback_source_put()
3176 …int cm9761_spdif_out_source_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in cm9761_spdif_out_source_get() argument
3181 ucontrol->value.enumerated.item[0] = 2; /* SPDIF-loopback */ in cm9761_spdif_out_source_get()
3183 ucontrol->value.enumerated.item[0] = 1; /* ADC loopback */ in cm9761_spdif_out_source_get()
3185 ucontrol->value.enumerated.item[0] = 0; /* AC-link */ in cm9761_spdif_out_source_get()
3189 …int cm9761_spdif_out_source_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in cm9761_spdif_out_source_put() argument
3193 if (ucontrol->value.enumerated.item[0] == 2) in cm9761_spdif_out_source_put()
3197 ucontrol->value.enumerated.item[0] == 1 ? 0x2 : 0); in cm9761_spdif_out_source_put()
3523 struct snd_ctl_elem_value *ucontrol) in snd_ac97_vt1617a_smart51_get() argument
3537 ucontrol->value.enumerated.item[0] = (usSM51 << 1) + usMS; in snd_ac97_vt1617a_smart51_get()
3543 struct snd_ctl_elem_value *ucontrol) in snd_ac97_vt1617a_smart51_put() argument
3551 usSM51 = ucontrol->value.enumerated.item[0] >> 1; in snd_ac97_vt1617a_smart51_put()
3552 usMS = ucontrol->value.enumerated.item[0] & 1; in snd_ac97_vt1617a_smart51_put()
3692 struct snd_ctl_elem_value *ucontrol) in snd_ac97_vt1618_UAJ_get() argument
3708 ucontrol->value.enumerated.item[0] = uaj >> in snd_ac97_vt1618_UAJ_get()
3715 struct snd_ctl_elem_value *ucontrol) in snd_ac97_vt1618_UAJ_put() argument
3719 ucontrol->value.enumerated.item[0]<< in snd_ac97_vt1618_UAJ_put()
3735 struct snd_ctl_elem_value *ucontrol) in snd_ac97_vt1618_aux_get() argument
3737 ucontrol->value.enumerated.item[0] = in snd_ac97_vt1618_aux_get()
3743 struct snd_ctl_elem_value *ucontrol) in snd_ac97_vt1618_aux_put() argument
3748 ucontrol->value.enumerated.item[0] << 3); in snd_ac97_vt1618_aux_put()
3753 ucontrol->value.enumerated.item[0] << 3); in snd_ac97_vt1618_aux_put()