Lines Matching refs:value

228 	uinfo->value.integer.min = 0;  in tas_snd_vol_info()
229 uinfo->value.integer.max = 177; in tas_snd_vol_info()
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()
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()
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()
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()
329 uinfo->value.integer.min = 0; in tas_snd_mixer_info()
330 uinfo->value.integer.max = 177; in tas_snd_mixer_info()
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()
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()
389 uinfo->value.integer.min = 0; in tas_snd_drc_range_info()
390 uinfo->value.integer.max = TAS3004_DRC_MAX; in tas_snd_drc_range_info()
400 ucontrol->value.integer.value[0] = tas->drc_range; in tas_snd_drc_range_get()
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()
444 ucontrol->value.integer.value[0] = tas->drc_enabled; in tas_snd_drc_switch_get()
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()
490 ucontrol->value.enumerated.item[0] = !!(tas->acr & TAS_ACR_INPUT_B); in tas_snd_capture_source_get()
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()
550 uinfo->value.integer.min = TAS3004_TREBLE_MIN; in tas_snd_treble_info()
551 uinfo->value.integer.max = TAS3004_TREBLE_MAX; in tas_snd_treble_info()
561 ucontrol->value.integer.value[0] = tas->treble; in tas_snd_treble_get()
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()
601 uinfo->value.integer.min = TAS3004_BASS_MIN; in tas_snd_bass_info()
602 uinfo->value.integer.max = TAS3004_BASS_MAX; in tas_snd_bass_info()
612 ucontrol->value.integer.value[0] = tas->bass; in tas_snd_bass_get()
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()