]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: codecs: jz4725b: fix reported volume for Master ctl
authorSiarhei Volkau <lis8215@gmail.com>
Sun, 16 Oct 2022 13:26:43 +0000 (16:26 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Nov 2022 16:45:39 +0000 (17:45 +0100)
commitc87945c173853357288485208af5963ce83f01a2
tree45457becb4ec35979f2cade9e46175398e5ca81c
parent9aae00961ab3a49ca453b918bd770f878e5318dd
ASoC: codecs: jz4725b: fix reported volume for Master ctl

[ Upstream commit 088777bf65b98cfa4b5378119d0a7d49a58ece44 ]

DAC volume control is the Master Playback Volume at the moment
and it reports wrong levels in alsamixer and other alsa apps.

The patch fixes that, as stated in manual on the jz4725b SoC
(16.6.3.4 Programmable attenuation: GOD) the ctl range varies
from -22.5dB to 0dB with 1.5dB step.

Signed-off-by: Siarhei Volkau <lis8215@gmail.com>
Link: https://lore.kernel.org/r/20221016132648.3011729-3-lis8215@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/codecs/jz4725b.c