summaryrefslogtreecommitdiff
path: root/include/linux/timerqueue.h
diff options
context:
space:
mode:
authorVal Packett <val@packett.cool>2026-05-29 23:05:14 +0300
committerMark Brown <broonie@kernel.org>2026-06-10 02:09:11 +0300
commit9b2929eed4d2d30f1aebe45bd2a8973eaab2428c (patch)
tree39f77ff549a25e33c9cf12382cd3e1e70e7090a4 /include/linux/timerqueue.h
parent79c053a1ff9d3ab31cefbc791e8d7816ba830491 (diff)
downloadlinux-9b2929eed4d2d30f1aebe45bd2a8973eaab2428c.tar.xz
ASoC: codecs: aw88261: make volume control usable
- Invert the value to match userspace expectations (in the hardware, positive numbers represent negative dB attenuation) - Provide TLV metadata for the dB scale (and divide the raw values by 2 as the excessive precision used by HW is not representable in TLV) - Do not unnecessarily reset the volume while switching profiles - Simplify aw88261_dev_set_volume using regmap_update_bits - Do not add the initial volume from the profile to the requested volume as that would throw off the dB mapping (if a lower max limit is desired, it can be set in the UCM profile in userspace) With this change, it's actually possible to use this hardware volume control as PlaybackVolume in an ALSA UCM profile. Fixes: 028a2ae25691 ("ASoC: codecs: Add aw88261 amplifier driver") Signed-off-by: Val Packett <val@packett.cool> Link: https://patch.msgid.link/20260529200550.529719-8-val@packett.cool Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions