Lines Matching refs:ucontrol
236 struct snd_ctl_elem_value *ucontrol) in tas_snd_vol_get() argument
241 ucontrol->value.integer.value[0] = tas->cached_volume_l; in tas_snd_vol_get()
242 ucontrol->value.integer.value[1] = tas->cached_volume_r; in tas_snd_vol_get()
248 struct snd_ctl_elem_value *ucontrol) in tas_snd_vol_put() argument
252 if (ucontrol->value.integer.value[0] < 0 || in tas_snd_vol_put()
253 ucontrol->value.integer.value[0] > 177) in tas_snd_vol_put()
255 if (ucontrol->value.integer.value[1] < 0 || in tas_snd_vol_put()
256 ucontrol->value.integer.value[1] > 177) in tas_snd_vol_put()
260 if (tas->cached_volume_l == ucontrol->value.integer.value[0] in tas_snd_vol_put()
261 && tas->cached_volume_r == ucontrol->value.integer.value[1]) { in tas_snd_vol_put()
266 tas->cached_volume_l = ucontrol->value.integer.value[0]; in tas_snd_vol_put()
267 tas->cached_volume_r = ucontrol->value.integer.value[1]; in tas_snd_vol_put()
286 struct snd_ctl_elem_value *ucontrol) in tas_snd_mute_get() argument
291 ucontrol->value.integer.value[0] = !tas->mute_l; in tas_snd_mute_get()
292 ucontrol->value.integer.value[1] = !tas->mute_r; in tas_snd_mute_get()
298 struct snd_ctl_elem_value *ucontrol) in tas_snd_mute_put() argument
303 if (tas->mute_l == !ucontrol->value.integer.value[0] in tas_snd_mute_put()
304 && tas->mute_r == !ucontrol->value.integer.value[1]) { in tas_snd_mute_put()
309 tas->mute_l = !ucontrol->value.integer.value[0]; in tas_snd_mute_put()
310 tas->mute_r = !ucontrol->value.integer.value[1]; in tas_snd_mute_put()
337 struct snd_ctl_elem_value *ucontrol) in tas_snd_mixer_get() argument
343 ucontrol->value.integer.value[0] = tas->mixer_l[idx]; in tas_snd_mixer_get()
344 ucontrol->value.integer.value[1] = tas->mixer_r[idx]; in tas_snd_mixer_get()
351 struct snd_ctl_elem_value *ucontrol) in tas_snd_mixer_put() argument
357 if (tas->mixer_l[idx] == ucontrol->value.integer.value[0] in tas_snd_mixer_put()
358 && tas->mixer_r[idx] == ucontrol->value.integer.value[1]) { in tas_snd_mixer_put()
363 tas->mixer_l[idx] = ucontrol->value.integer.value[0]; in tas_snd_mixer_put()
364 tas->mixer_r[idx] = ucontrol->value.integer.value[1]; in tas_snd_mixer_put()
397 struct snd_ctl_elem_value *ucontrol) in tas_snd_drc_range_get() argument
402 ucontrol->value.integer.value[0] = tas->drc_range; in tas_snd_drc_range_get()
408 struct snd_ctl_elem_value *ucontrol) in tas_snd_drc_range_put() argument
412 if (ucontrol->value.integer.value[0] < 0 || in tas_snd_drc_range_put()
413 ucontrol->value.integer.value[0] > TAS3004_DRC_MAX) in tas_snd_drc_range_put()
417 if (tas->drc_range == ucontrol->value.integer.value[0]) { in tas_snd_drc_range_put()
422 tas->drc_range = ucontrol->value.integer.value[0]; in tas_snd_drc_range_put()
441 struct snd_ctl_elem_value *ucontrol) in tas_snd_drc_switch_get() argument
446 ucontrol->value.integer.value[0] = tas->drc_enabled; in tas_snd_drc_switch_get()
452 struct snd_ctl_elem_value *ucontrol) in tas_snd_drc_switch_put() argument
457 if (tas->drc_enabled == ucontrol->value.integer.value[0]) { in tas_snd_drc_switch_put()
462 tas->drc_enabled = !!ucontrol->value.integer.value[0]; in tas_snd_drc_switch_put()
487 struct snd_ctl_elem_value *ucontrol) in tas_snd_capture_source_get() argument
492 ucontrol->value.enumerated.item[0] = !!(tas->acr & TAS_ACR_INPUT_B); in tas_snd_capture_source_get()
498 struct snd_ctl_elem_value *ucontrol) in tas_snd_capture_source_put() argument
503 if (ucontrol->value.enumerated.item[0] > 1) in tas_snd_capture_source_put()
514 if (ucontrol->value.enumerated.item[0]) in tas_snd_capture_source_put()
558 struct snd_ctl_elem_value *ucontrol) in tas_snd_treble_get() argument
563 ucontrol->value.integer.value[0] = tas->treble; in tas_snd_treble_get()
569 struct snd_ctl_elem_value *ucontrol) in tas_snd_treble_put() argument
573 if (ucontrol->value.integer.value[0] < TAS3004_TREBLE_MIN || in tas_snd_treble_put()
574 ucontrol->value.integer.value[0] > TAS3004_TREBLE_MAX) in tas_snd_treble_put()
577 if (tas->treble == ucontrol->value.integer.value[0]) { in tas_snd_treble_put()
582 tas->treble = ucontrol->value.integer.value[0]; in tas_snd_treble_put()
609 struct snd_ctl_elem_value *ucontrol) in tas_snd_bass_get() argument
614 ucontrol->value.integer.value[0] = tas->bass; in tas_snd_bass_get()
620 struct snd_ctl_elem_value *ucontrol) in tas_snd_bass_put() argument
624 if (ucontrol->value.integer.value[0] < TAS3004_BASS_MIN || in tas_snd_bass_put()
625 ucontrol->value.integer.value[0] > TAS3004_BASS_MAX) in tas_snd_bass_put()
628 if (tas->bass == ucontrol->value.integer.value[0]) { in tas_snd_bass_put()
633 tas->bass = ucontrol->value.integer.value[0]; in tas_snd_bass_put()