]> git.baikalelectronics.ru Git - kernel.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)
committerMark Brown <broonie@kernel.org>
Mon, 17 Oct 2022 11:50:27 +0000 (12:50 +0100)
commitfa3b1db76bf1cc7a44af690b7f43c881eecaca12
tree606bf07dddd15ef23c2eb6689589ea68aae62523
parentbbd3214e1e59f2511247cda99b9d883a6054d363
ASoC: codecs: jz4725b: fix reported volume for Master ctl

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>
sound/soc/codecs/jz4725b.c