Lines Matching refs:ucontrol

234 	struct snd_ctl_elem_value *ucontrol)  in tas_snd_vol_get()  argument
239 ucontrol->value.integer.value[0] = tas->cached_volume_l; in tas_snd_vol_get()
240 ucontrol->value.integer.value[1] = tas->cached_volume_r; in tas_snd_vol_get()
246 struct snd_ctl_elem_value *ucontrol) in tas_snd_vol_put() argument
250 if (ucontrol->value.integer.value[0] < 0 || in tas_snd_vol_put()
251 ucontrol->value.integer.value[0] > 177) in tas_snd_vol_put()
253 if (ucontrol->value.integer.value[1] < 0 || in tas_snd_vol_put()
254 ucontrol->value.integer.value[1] > 177) in tas_snd_vol_put()
258 if (tas->cached_volume_l == ucontrol->value.integer.value[0] in tas_snd_vol_put()
259 && tas->cached_volume_r == ucontrol->value.integer.value[1]) { in tas_snd_vol_put()
264 tas->cached_volume_l = ucontrol->value.integer.value[0]; in tas_snd_vol_put()
265 tas->cached_volume_r = ucontrol->value.integer.value[1]; in tas_snd_vol_put()
284 struct snd_ctl_elem_value *ucontrol) in tas_snd_mute_get() argument
289 ucontrol->value.integer.value[0] = !tas->mute_l; in tas_snd_mute_get()
290 ucontrol->value.integer.value[1] = !tas->mute_r; in tas_snd_mute_get()
296 struct snd_ctl_elem_value *ucontrol) in tas_snd_mute_put() argument
301 if (tas->mute_l == !ucontrol->value.integer.value[0] in tas_snd_mute_put()
302 && tas->mute_r == !ucontrol->value.integer.value[1]) { in tas_snd_mute_put()
307 tas->mute_l = !ucontrol->value.integer.value[0]; in tas_snd_mute_put()
308 tas->mute_r = !ucontrol->value.integer.value[1]; in tas_snd_mute_put()
335 struct snd_ctl_elem_value *ucontrol) in tas_snd_mixer_get() argument
341 ucontrol->value.integer.value[0] = tas->mixer_l[idx]; in tas_snd_mixer_get()
342 ucontrol->value.integer.value[1] = tas->mixer_r[idx]; in tas_snd_mixer_get()
349 struct snd_ctl_elem_value *ucontrol) in tas_snd_mixer_put() argument
355 if (tas->mixer_l[idx] == ucontrol->value.integer.value[0] in tas_snd_mixer_put()
356 && tas->mixer_r[idx] == ucontrol->value.integer.value[1]) { in tas_snd_mixer_put()
361 tas->mixer_l[idx] = ucontrol->value.integer.value[0]; in tas_snd_mixer_put()
362 tas->mixer_r[idx] = ucontrol->value.integer.value[1]; in tas_snd_mixer_put()
395 struct snd_ctl_elem_value *ucontrol) in tas_snd_drc_range_get() argument
400 ucontrol->value.integer.value[0] = tas->drc_range; in tas_snd_drc_range_get()
406 struct snd_ctl_elem_value *ucontrol) in tas_snd_drc_range_put() argument
410 if (ucontrol->value.integer.value[0] < 0 || in tas_snd_drc_range_put()
411 ucontrol->value.integer.value[0] > TAS3004_DRC_MAX) in tas_snd_drc_range_put()
415 if (tas->drc_range == ucontrol->value.integer.value[0]) { in tas_snd_drc_range_put()
420 tas->drc_range = ucontrol->value.integer.value[0]; in tas_snd_drc_range_put()
439 struct snd_ctl_elem_value *ucontrol) in tas_snd_drc_switch_get() argument
444 ucontrol->value.integer.value[0] = tas->drc_enabled; in tas_snd_drc_switch_get()
450 struct snd_ctl_elem_value *ucontrol) in tas_snd_drc_switch_put() argument
455 if (tas->drc_enabled == ucontrol->value.integer.value[0]) { in tas_snd_drc_switch_put()
460 tas->drc_enabled = !!ucontrol->value.integer.value[0]; in tas_snd_drc_switch_put()
485 struct snd_ctl_elem_value *ucontrol) in tas_snd_capture_source_get() argument
490 ucontrol->value.enumerated.item[0] = !!(tas->acr & TAS_ACR_INPUT_B); in tas_snd_capture_source_get()
496 struct snd_ctl_elem_value *ucontrol) in tas_snd_capture_source_put() argument
501 if (ucontrol->value.enumerated.item[0] > 1) in tas_snd_capture_source_put()
512 if (ucontrol->value.enumerated.item[0]) in tas_snd_capture_source_put()
556 struct snd_ctl_elem_value *ucontrol) in tas_snd_treble_get() argument
561 ucontrol->value.integer.value[0] = tas->treble; in tas_snd_treble_get()
567 struct snd_ctl_elem_value *ucontrol) in tas_snd_treble_put() argument
571 if (ucontrol->value.integer.value[0] < TAS3004_TREBLE_MIN || in tas_snd_treble_put()
572 ucontrol->value.integer.value[0] > TAS3004_TREBLE_MAX) in tas_snd_treble_put()
575 if (tas->treble == ucontrol->value.integer.value[0]) { in tas_snd_treble_put()
580 tas->treble = ucontrol->value.integer.value[0]; in tas_snd_treble_put()
607 struct snd_ctl_elem_value *ucontrol) in tas_snd_bass_get() argument
612 ucontrol->value.integer.value[0] = tas->bass; in tas_snd_bass_get()
618 struct snd_ctl_elem_value *ucontrol) in tas_snd_bass_put() argument
622 if (ucontrol->value.integer.value[0] < TAS3004_BASS_MIN || in tas_snd_bass_put()
623 ucontrol->value.integer.value[0] > TAS3004_BASS_MAX) in tas_snd_bass_put()
626 if (tas->bass == ucontrol->value.integer.value[0]) { in tas_snd_bass_put()
631 tas->bass = ucontrol->value.integer.value[0]; in tas_snd_bass_put()