]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ASoC: tlv320adcx140: add kcontrol for num biquads
authorEmil-Juhl <juhl.emildahl@gmail.com>
Tue, 13 Jan 2026 10:58:52 +0000 (11:58 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 14 Jan 2026 13:35:37 +0000 (13:35 +0000)
The tlv320adcx140 chips have a configurable amount of biquad filters
enabled per input channel. Currently this number is always left at the
default value of 2 biquads per channel.
This commit adds a kcontrol to allow runtime configuration of the amount
of biquads per channel.

The configuration is controlled by bits [5-6] in the DSP_CFG1 register.

Signed-off-by: Emil-Juhl <juhl.emildahl@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Link: https://patch.msgid.link/20260113-sound-soc-codecs-tvl320adcx140-v4-9-8f7ecec525c8@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tlv320adcx140.c

index a7200e149e5f40ddd61e3c0455b796c81f55e2e8..e7c607af642f43b2b783597f3cba3a8cbb31de4a 100644 (file)
@@ -709,6 +709,8 @@ static const struct snd_kcontrol_new adcx140_snd_controls[] = {
        SOC_SINGLE_TLV("Digital CH8 Out Volume", ADCX140_CH8_CFG2,
                        0, 0xff, 0, dig_vol_tlv),
        ADCX140_PHASE_CALIB_SWITCH("Phase Calibration Switch"),
+
+       SOC_SINGLE("Biquads Per Channel", ADCX140_DSP_CFG1, 5, 3, 0),
 };
 
 static int adcx140_reset(struct adcx140_priv *adcx140)