Unverified Commit 2219823f authored by Emil-Juhl's avatar Emil-Juhl Committed by Mark Brown
Browse files

ASoC: tlv320adcx140: add kcontrol for num biquads



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: default avatarEmil-Juhl <juhl.emildahl@gmail.com>
Signed-off-by: default avatarSascha Hauer <s.hauer@pengutronix.de>
Link: https://patch.msgid.link/20260113-sound-soc-codecs-tvl320adcx140-v4-9-8f7ecec525c8@pengutronix.de


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 4a1bc07e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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)