Home
last modified time | relevance | path

Searched refs:VOLUME_RANGE_SHIFT (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/sound/aoa/codecs/
H A Donyx.c106 #define VOLUME_RANGE_SHIFT 128 macro
113 uinfo->value.integer.min = -128 + VOLUME_RANGE_SHIFT; in onyx_snd_vol_info()
114 uinfo->value.integer.max = -1 + VOLUME_RANGE_SHIFT; in onyx_snd_vol_info()
129 ucontrol->value.integer.value[0] = l + VOLUME_RANGE_SHIFT; in onyx_snd_vol_get()
130 ucontrol->value.integer.value[1] = r + VOLUME_RANGE_SHIFT; in onyx_snd_vol_get()
141 if (ucontrol->value.integer.value[0] < -128 + VOLUME_RANGE_SHIFT || in onyx_snd_vol_put()
142 ucontrol->value.integer.value[0] > -1 + VOLUME_RANGE_SHIFT) in onyx_snd_vol_put()
144 if (ucontrol->value.integer.value[1] < -128 + VOLUME_RANGE_SHIFT || in onyx_snd_vol_put()
145 ucontrol->value.integer.value[1] > -1 + VOLUME_RANGE_SHIFT) in onyx_snd_vol_put()
152 if (l + VOLUME_RANGE_SHIFT == ucontrol->value.integer.value[0] && in onyx_snd_vol_put()
[all …]