Lines Matching refs:ucontrol

132 		struct snd_ctl_elem_value *ucontrol)  in rt715_sdca_set_amp_gain_put()  argument
142 if (ucontrol->value.integer.value[i] != rt715->kctl_2ch_orig[i]) { in rt715_sdca_set_amp_gain_put()
149 rt715->kctl_2ch_orig[i] = ucontrol->value.integer.value[i]; in rt715_sdca_set_amp_gain_put()
151 rt715_sdca_vol_gain(ucontrol->value.integer.value[i], mc->max, in rt715_sdca_set_amp_gain_put()
165 struct snd_ctl_elem_value *ucontrol) in rt715_sdca_set_amp_gain_4ch_put() argument
177 if (ucontrol->value.integer.value[i] != rt715->kctl_4ch_orig[i]) { in rt715_sdca_set_amp_gain_4ch_put()
184 rt715->kctl_4ch_orig[i] = ucontrol->value.integer.value[i]; in rt715_sdca_set_amp_gain_4ch_put()
186 rt715_sdca_vol_gain(ucontrol->value.integer.value[i], p->max, in rt715_sdca_set_amp_gain_4ch_put()
201 struct snd_ctl_elem_value *ucontrol) in rt715_sdca_set_amp_gain_8ch_put() argument
213 if (ucontrol->value.integer.value[i] != rt715->kctl_8ch_orig[i]) { in rt715_sdca_set_amp_gain_8ch_put()
220 rt715->kctl_8ch_orig[i] = ucontrol->value.integer.value[i]; in rt715_sdca_set_amp_gain_8ch_put()
222 rt715_sdca_boost_gain(ucontrol->value.integer.value[i], p->max, in rt715_sdca_set_amp_gain_8ch_put()
237 struct snd_ctl_elem_value *ucontrol) in rt715_sdca_set_amp_gain_get() argument
253 ucontrol->value.integer.value[i] = rt715_sdca_get_gain(val, mc->shift); in rt715_sdca_set_amp_gain_get()
260 struct snd_ctl_elem_value *ucontrol) in rt715_sdca_set_amp_gain_4ch_get() argument
278 ucontrol->value.integer.value[i] = rt715_sdca_get_gain(val, gain_sft); in rt715_sdca_set_amp_gain_4ch_get()
285 struct snd_ctl_elem_value *ucontrol) in rt715_sdca_set_amp_gain_8ch_get() argument
304 ucontrol->value.integer.value[i] = (val_l >> gain_sft) / 10; in rt715_sdca_set_amp_gain_8ch_get()
313 ucontrol->value.integer.value[i + 1] = (val_r >> gain_sft) / 10; in rt715_sdca_set_amp_gain_8ch_get()
323 struct snd_ctl_elem_value *ucontrol) in rt715_sdca_get_volsw() argument
336 ucontrol->value.integer.value[i] = invert ? p->max - val : val; in rt715_sdca_get_volsw()
341 ucontrol->value.integer.value[i + 1] = in rt715_sdca_get_volsw()
349 struct snd_ctl_elem_value *ucontrol) in rt715_sdca_put_volsw() argument
364 if (ucontrol->value.integer.value[i] != rt715->kctl_switch_orig[i]) { in rt715_sdca_put_volsw()
371 rt715->kctl_switch_orig[i * 2] = ucontrol->value.integer.value[i * 2]; in rt715_sdca_put_volsw()
372 val[i * 2] = ucontrol->value.integer.value[i * 2] & mask; in rt715_sdca_put_volsw()
379 ucontrol->value.integer.value[i * 2 + 1]; in rt715_sdca_put_volsw()
381 ucontrol->value.integer.value[i * 2 + 1] & mask; in rt715_sdca_put_volsw()
511 struct snd_ctl_elem_value *ucontrol) in rt715_sdca_mux_get() argument
518 if (strstr(ucontrol->id.name, "ADC 22 Mux")) in rt715_sdca_mux_get()
520 else if (strstr(ucontrol->id.name, "ADC 23 Mux")) in rt715_sdca_mux_get()
522 else if (strstr(ucontrol->id.name, "ADC 24 Mux")) in rt715_sdca_mux_get()
524 else if (strstr(ucontrol->id.name, "ADC 25 Mux")) in rt715_sdca_mux_get()
538 if ((strstr(ucontrol->id.name, "ADC 24 Mux") || in rt715_sdca_mux_get()
539 strstr(ucontrol->id.name, "ADC 25 Mux")) && val > 0) in rt715_sdca_mux_get()
541 ucontrol->value.enumerated.item[0] = val; in rt715_sdca_mux_get()
547 struct snd_ctl_elem_value *ucontrol) in rt715_sdca_mux_put() argument
555 unsigned int *item = ucontrol->value.enumerated.item; in rt715_sdca_mux_put()
561 if (strstr(ucontrol->id.name, "ADC 22 Mux")) in rt715_sdca_mux_put()
563 else if (strstr(ucontrol->id.name, "ADC 23 Mux")) in rt715_sdca_mux_put()
565 else if (strstr(ucontrol->id.name, "ADC 24 Mux")) in rt715_sdca_mux_put()
567 else if (strstr(ucontrol->id.name, "ADC 25 Mux")) in rt715_sdca_mux_put()