]> git.ipfire.org Git - thirdparty/linux.git/commit
ASoC: codecs: Fix gain setting ranges for Renesas IDT821034 codec
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Thu, 9 Oct 2025 17:03:13 +0000 (19:03 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 13 Oct 2025 10:08:11 +0000 (11:08 +0100)
commit6370a996f308ea3276030769b7482b346e7cc7c1
treeaebd2285bef4d5d4c41cd193977798b791099104
parent7e6cfa3e94cf8278ee3170dc0b81fc6db1287e28
ASoC: codecs: Fix gain setting ranges for Renesas IDT821034 codec

The gain ranges specified in Renesas IDT821034 codec documentation
are [-3dB;+13dB] in the transmit path (ADC) and [-13dB;+3dB] in the
receive path (DAC). Allthough the registers allow programming values
outside those ranges, the signal S/N and distorsion are only
guaranteed in the specified ranges.

Set ranges to the specified ones.

Fixes: e51166990e81 ("ASoC: codecs: Add support for the Renesas IDT821034 codec")
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Link: https://patch.msgid.link/2bd547194f3398e6182f770d7d6be711c702b4b2.1760029099.git.christophe.leroy@csgroup.eu
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/idt821034.c