]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Nov 2022 16:42:12 +0000 (17:42 +0100)
commitfc735f75fa0aa9e8e4d959e3d028252777c9e620
tree24343b0ccbfd7a9eabb480badfc698a584fb2879
parent55d7ab88591013efc5b34d7c3cc3c2f66aa22698
ASoC: codecs: jz4725b: use right control for Capture Volume

[ Upstream commit d1c5e497db46ef17ba1c037f4d82525be0184923 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/codecs/jz4725b.c