Lines Matching refs:ucontrol

235 	struct snd_ctl_elem_value *ucontrol)  in tas_snd_vol_get()  argument
240 ucontrol->value.integer.value[0] = tas->cached_volume_l; in tas_snd_vol_get()
241 ucontrol->value.integer.value[1] = tas->cached_volume_r; in tas_snd_vol_get()
247 struct snd_ctl_elem_value *ucontrol) in tas_snd_vol_put() argument
251 if (ucontrol->value.integer.value[0] < 0 || in tas_snd_vol_put()
252 ucontrol->value.integer.value[0] > 177) in tas_snd_vol_put()
254 if (ucontrol->value.integer.value[1] < 0 || in tas_snd_vol_put()
255 ucontrol->value.integer.value[1] > 177) in tas_snd_vol_put()
259 if (tas->cached_volume_l == ucontrol->value.integer.value[0] in tas_snd_vol_put()
260 && tas->cached_volume_r == ucontrol->value.integer.value[1]) { in tas_snd_vol_put()
265 tas->cached_volume_l = ucontrol->value.integer.value[0]; in tas_snd_vol_put()
266 tas->cached_volume_r = ucontrol->value.integer.value[1]; in tas_snd_vol_put()
285 struct snd_ctl_elem_value *ucontrol) in tas_snd_mute_get() argument
290 ucontrol->value.integer.value[0] = !tas->mute_l; in tas_snd_mute_get()
291 ucontrol->value.integer.value[1] = !tas->mute_r; in tas_snd_mute_get()
297 struct snd_ctl_elem_value *ucontrol) in tas_snd_mute_put() argument
302 if (tas->mute_l == !ucontrol->value.integer.value[0] in tas_snd_mute_put()
303 && tas->mute_r == !ucontrol->value.integer.value[1]) { in tas_snd_mute_put()
308 tas->mute_l = !ucontrol->value.integer.value[0]; in tas_snd_mute_put()
309 tas->mute_r = !ucontrol->value.integer.value[1]; in tas_snd_mute_put()
336 struct snd_ctl_elem_value *ucontrol) in tas_snd_mixer_get() argument
342 ucontrol->value.integer.value[0] = tas->mixer_l[idx]; in tas_snd_mixer_get()
343 ucontrol->value.integer.value[1] = tas->mixer_r[idx]; in tas_snd_mixer_get()
350 struct snd_ctl_elem_value *ucontrol) in tas_snd_mixer_put() argument
356 if (tas->mixer_l[idx] == ucontrol->value.integer.value[0] in tas_snd_mixer_put()
357 && tas->mixer_r[idx] == ucontrol->value.integer.value[1]) { in tas_snd_mixer_put()
362 tas->mixer_l[idx] = ucontrol->value.integer.value[0]; in tas_snd_mixer_put()
363 tas->mixer_r[idx] = ucontrol->value.integer.value[1]; in tas_snd_mixer_put()
396 struct snd_ctl_elem_value *ucontrol) in tas_snd_drc_range_get() argument
401 ucontrol->value.integer.value[0] = tas->drc_range; in tas_snd_drc_range_get()
407 struct snd_ctl_elem_value *ucontrol) in tas_snd_drc_range_put() argument
411 if (ucontrol->value.integer.value[0] < 0 || in tas_snd_drc_range_put()
412 ucontrol->value.integer.value[0] > TAS3004_DRC_MAX) in tas_snd_drc_range_put()
416 if (tas->drc_range == ucontrol->value.integer.value[0]) { in tas_snd_drc_range_put()
421 tas->drc_range = ucontrol->value.integer.value[0]; in tas_snd_drc_range_put()
440 struct snd_ctl_elem_value *ucontrol) in tas_snd_drc_switch_get() argument
445 ucontrol->value.integer.value[0] = tas->drc_enabled; in tas_snd_drc_switch_get()
451 struct snd_ctl_elem_value *ucontrol) in tas_snd_drc_switch_put() argument
456 if (tas->drc_enabled == ucontrol->value.integer.value[0]) { in tas_snd_drc_switch_put()
461 tas->drc_enabled = !!ucontrol->value.integer.value[0]; in tas_snd_drc_switch_put()
486 struct snd_ctl_elem_value *ucontrol) in tas_snd_capture_source_get() argument
491 ucontrol->value.enumerated.item[0] = !!(tas->acr & TAS_ACR_INPUT_B); in tas_snd_capture_source_get()
497 struct snd_ctl_elem_value *ucontrol) in tas_snd_capture_source_put() argument
502 if (ucontrol->value.enumerated.item[0] > 1) in tas_snd_capture_source_put()
513 if (ucontrol->value.enumerated.item[0]) in tas_snd_capture_source_put()
557 struct snd_ctl_elem_value *ucontrol) in tas_snd_treble_get() argument
562 ucontrol->value.integer.value[0] = tas->treble; in tas_snd_treble_get()
568 struct snd_ctl_elem_value *ucontrol) in tas_snd_treble_put() argument
572 if (ucontrol->value.integer.value[0] < TAS3004_TREBLE_MIN || in tas_snd_treble_put()
573 ucontrol->value.integer.value[0] > TAS3004_TREBLE_MAX) in tas_snd_treble_put()
576 if (tas->treble == ucontrol->value.integer.value[0]) { in tas_snd_treble_put()
581 tas->treble = ucontrol->value.integer.value[0]; in tas_snd_treble_put()
608 struct snd_ctl_elem_value *ucontrol) in tas_snd_bass_get() argument
613 ucontrol->value.integer.value[0] = tas->bass; in tas_snd_bass_get()
619 struct snd_ctl_elem_value *ucontrol) in tas_snd_bass_put() argument
623 if (ucontrol->value.integer.value[0] < TAS3004_BASS_MIN || in tas_snd_bass_put()
624 ucontrol->value.integer.value[0] > TAS3004_BASS_MAX) in tas_snd_bass_put()
627 if (tas->bass == ucontrol->value.integer.value[0]) { in tas_snd_bass_put()
632 tas->bass = ucontrol->value.integer.value[0]; in tas_snd_bass_put()