Lines Matching refs:value
230 uinfo->value.integer.min = 0; in tas_snd_vol_info()
231 uinfo->value.integer.max = 177; in tas_snd_vol_info()
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()
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()
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()
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()
331 uinfo->value.integer.min = 0; in tas_snd_mixer_info()
332 uinfo->value.integer.max = 177; in tas_snd_mixer_info()
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()
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()
391 uinfo->value.integer.min = 0; in tas_snd_drc_range_info()
392 uinfo->value.integer.max = TAS3004_DRC_MAX; in tas_snd_drc_range_info()
402 ucontrol->value.integer.value[0] = tas->drc_range; in tas_snd_drc_range_get()
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()
446 ucontrol->value.integer.value[0] = tas->drc_enabled; in tas_snd_drc_switch_get()
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()
492 ucontrol->value.enumerated.item[0] = !!(tas->acr & TAS_ACR_INPUT_B); in tas_snd_capture_source_get()
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()
552 uinfo->value.integer.min = TAS3004_TREBLE_MIN; in tas_snd_treble_info()
553 uinfo->value.integer.max = TAS3004_TREBLE_MAX; in tas_snd_treble_info()
563 ucontrol->value.integer.value[0] = tas->treble; in tas_snd_treble_get()
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()
603 uinfo->value.integer.min = TAS3004_BASS_MIN; in tas_snd_bass_info()
604 uinfo->value.integer.max = TAS3004_BASS_MAX; in tas_snd_bass_info()
614 ucontrol->value.integer.value[0] = tas->bass; in tas_snd_bass_get()
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()