[PATCH 09/11] ASoC: tlv320adcx140: Add kcontrols for TDM Slot assignment

Sascha Hauer posted 11 patches 1 month, 3 weeks ago
There is a newer version of this series
[PATCH 09/11] ASoC: tlv320adcx140: Add kcontrols for TDM Slot assignment
Posted by Sascha Hauer 1 month, 3 weeks ago
From: Andreas Sloth <anps@bang-olufsen.dk>

Signed-off-by: Andreas Pehn Sloth <anps@bang-olufsen.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
 sound/soc/codecs/tlv320adcx140.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/sound/soc/codecs/tlv320adcx140.c b/sound/soc/codecs/tlv320adcx140.c
index a7200e149e5f40ddd61e3c0455b796c81f55e2e8..a835074d9a7898466c6854f0c0e8ab687a99c57a 100644
--- a/sound/soc/codecs/tlv320adcx140.c
+++ b/sound/soc/codecs/tlv320adcx140.c
@@ -708,6 +708,16 @@ static const struct snd_kcontrol_new adcx140_snd_controls[] = {
 			0, 0xff, 0, dig_vol_tlv),
 	SOC_SINGLE_TLV("Digital CH8 Out Volume", ADCX140_CH8_CFG2,
 			0, 0xff, 0, dig_vol_tlv),
+
+	SOC_SINGLE("CH1_ASI_Slot", ADCX140_ASI_CH1, 0, 0x3f, 0),
+	SOC_SINGLE("CH2_ASI_Slot", ADCX140_ASI_CH2,	0, 0x3f, 0),
+	SOC_SINGLE("CH3_ASI_Slot", ADCX140_ASI_CH3,	0, 0x3f, 0),
+	SOC_SINGLE("CH4_ASI_Slot", ADCX140_ASI_CH4,	0, 0x3f, 0),
+	SOC_SINGLE("CH5_ASI_Slot", ADCX140_ASI_CH5,	0, 0x3f, 0),
+	SOC_SINGLE("CH6_ASI_Slot", ADCX140_ASI_CH6,	0, 0x3f, 0),
+	SOC_SINGLE("CH7_ASI_Slot", ADCX140_ASI_CH7,	0, 0x3f, 0),
+	SOC_SINGLE("CH8_ASI_Slot", ADCX140_ASI_CH8,	0, 0x3f, 0),
+
 	ADCX140_PHASE_CALIB_SWITCH("Phase Calibration Switch"),
 };
 

-- 
2.47.3
Re: [PATCH 09/11] ASoC: tlv320adcx140: Add kcontrols for TDM Slot assignment
Posted by Mark Brown 1 month, 3 weeks ago
On Wed, Dec 17, 2025 at 02:54:59PM +0100, Sascha Hauer wrote:
> From: Andreas Sloth <anps@bang-olufsen.dk>
> 
> Signed-off-by: Andreas Pehn Sloth <anps@bang-olufsen.com>
> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
> ---

This is obviously bogus, we have an API for controlling TDM.