]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: tlv320adcx140: fix word length
authorEmil Svendsen <emas@bang-olufsen.dk>
Tue, 13 Jan 2026 10:58:47 +0000 (11:58 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Jan 2026 10:21:19 +0000 (11:21 +0100)
commit7481e7b9d7366d92d17d29a41d2b96a7add007eb
treede9a3eded9d28d89d2387fc2e2c0a2657c22078d
parent53bd838ed5950cb18927e4b2e8ee841b7cb10929
ASoC: tlv320adcx140: fix word length

[ Upstream commit 46378ab9fcb796dca46b51e10646f636e2c661f9 ]

The word length is the physical width of the channel slots. So the
hw_params would misconfigure when format width and physical width
doesn't match. Like S24_LE which has data width of 24 bits but physical
width of 32 bits. So if using asymmetric formats you will get a lot of
noise.

Fixes: 689c7655b50c5 ("ASoC: tlv320adcx140: Add the tlv320adcx140 codec driver family")
Signed-off-by: Emil Svendsen <emas@bang-olufsen.dk>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Link: https://patch.msgid.link/20260113-sound-soc-codecs-tvl320adcx140-v4-4-8f7ecec525c8@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/codecs/tlv320adcx140.c