Lines Matching refs:integer
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()
249 if (ucontrol->value.integer.value[0] < 0 || in tas_snd_vol_put()
250 ucontrol->value.integer.value[0] > 177) in tas_snd_vol_put()
252 if (ucontrol->value.integer.value[1] < 0 || in tas_snd_vol_put()
253 ucontrol->value.integer.value[1] > 177) in tas_snd_vol_put()
257 if (tas->cached_volume_l == ucontrol->value.integer.value[0] in tas_snd_vol_put()
258 && tas->cached_volume_r == ucontrol->value.integer.value[1]) in tas_snd_vol_put()
261 tas->cached_volume_l = ucontrol->value.integer.value[0]; in tas_snd_vol_put()
262 tas->cached_volume_r = ucontrol->value.integer.value[1]; in tas_snd_vol_put()
285 ucontrol->value.integer.value[0] = !tas->mute_l; in tas_snd_mute_get()
286 ucontrol->value.integer.value[1] = !tas->mute_r; in tas_snd_mute_get()
296 if (tas->mute_l == !ucontrol->value.integer.value[0] in tas_snd_mute_put()
297 && tas->mute_r == !ucontrol->value.integer.value[1]) in tas_snd_mute_put()
300 tas->mute_l = !ucontrol->value.integer.value[0]; in tas_snd_mute_put()
301 tas->mute_r = !ucontrol->value.integer.value[1]; in tas_snd_mute_put()
321 uinfo->value.integer.min = 0; in tas_snd_mixer_info()
322 uinfo->value.integer.max = 177; in tas_snd_mixer_info()
333 ucontrol->value.integer.value[0] = tas->mixer_l[idx]; in tas_snd_mixer_get()
334 ucontrol->value.integer.value[1] = tas->mixer_r[idx]; in tas_snd_mixer_get()
346 if (tas->mixer_l[idx] == ucontrol->value.integer.value[0] in tas_snd_mixer_put()
347 && tas->mixer_r[idx] == ucontrol->value.integer.value[1]) in tas_snd_mixer_put()
350 tas->mixer_l[idx] = ucontrol->value.integer.value[0]; in tas_snd_mixer_put()
351 tas->mixer_r[idx] = ucontrol->value.integer.value[1]; in tas_snd_mixer_put()
377 uinfo->value.integer.min = 0; in tas_snd_drc_range_info()
378 uinfo->value.integer.max = TAS3004_DRC_MAX; in tas_snd_drc_range_info()
388 ucontrol->value.integer.value[0] = tas->drc_range; in tas_snd_drc_range_get()
397 if (ucontrol->value.integer.value[0] < 0 || in tas_snd_drc_range_put()
398 ucontrol->value.integer.value[0] > TAS3004_DRC_MAX) in tas_snd_drc_range_put()
402 if (tas->drc_range == ucontrol->value.integer.value[0]) in tas_snd_drc_range_put()
405 tas->drc_range = ucontrol->value.integer.value[0]; in tas_snd_drc_range_put()
428 ucontrol->value.integer.value[0] = tas->drc_enabled; in tas_snd_drc_switch_get()
438 if (tas->drc_enabled == ucontrol->value.integer.value[0]) in tas_snd_drc_switch_put()
441 tas->drc_enabled = !!ucontrol->value.integer.value[0]; in tas_snd_drc_switch_put()
526 uinfo->value.integer.min = TAS3004_TREBLE_MIN; in tas_snd_treble_info()
527 uinfo->value.integer.max = TAS3004_TREBLE_MAX; in tas_snd_treble_info()
537 ucontrol->value.integer.value[0] = tas->treble; in tas_snd_treble_get()
546 if (ucontrol->value.integer.value[0] < TAS3004_TREBLE_MIN || in tas_snd_treble_put()
547 ucontrol->value.integer.value[0] > TAS3004_TREBLE_MAX) in tas_snd_treble_put()
550 if (tas->treble == ucontrol->value.integer.value[0]) in tas_snd_treble_put()
553 tas->treble = ucontrol->value.integer.value[0]; in tas_snd_treble_put()
573 uinfo->value.integer.min = TAS3004_BASS_MIN; in tas_snd_bass_info()
574 uinfo->value.integer.max = TAS3004_BASS_MAX; in tas_snd_bass_info()
584 ucontrol->value.integer.value[0] = tas->bass; in tas_snd_bass_get()
593 if (ucontrol->value.integer.value[0] < TAS3004_BASS_MIN || in tas_snd_bass_put()
594 ucontrol->value.integer.value[0] > TAS3004_BASS_MAX) in tas_snd_bass_put()
597 if (tas->bass == ucontrol->value.integer.value[0]) in tas_snd_bass_put()
600 tas->bass = ucontrol->value.integer.value[0]; in tas_snd_bass_put()