]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: codecs: jz4725b: use right control for Capture Volume
authorSiarhei Volkau <lis8215@gmail.com>
Sun, 16 Oct 2022 13:26:44 +0000 (16:26 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 17 Oct 2022 11:50:27 +0000 (12:50 +0100)
commitad528189e08c403410d182a116cbb4d94efa0cb9
tree6e5a073a045e2b17386ab184239f2a10f5a5b5d5
parentfa3b1db76bf1cc7a44af690b7f43c881eecaca12
ASoC: codecs: jz4725b: use right control for Capture Volume

Line In Bypass control is used as Master Capture at the moment
this is completely incorrect.

Current control routed to Mixer instead of ADC, thus can't affect
Capture path. ADC control shall be used instead.

ADC volume control parameters are different, so the patch fixes that
as well. Manual says (16.6.3.2 Programmable input attenuation amplifier:
PGATM) that gain varies in range 0dB..22.5dB with 1.5dB step.

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