[PATCH v1 3/3] ASoC: qcom: sc8280xp: Handle AIF MI2S and TDM interfaces
From: Mohammad Rafi Shaik
Date: Fri Sep 18 2026 - 09:47:15 EST
Handle AIF MI2S and TDM DAI IDs in the SC8280XP machine driver
and extend LPASS_MAX_PORT to accommodate the additional audio
interfaces.
Signed-off-by: Mohammad Rafi Shaik <mohammad.rafi.shaik@xxxxxxxxxxxxxxxx>
---
sound/soc/qcom/common.h | 2 +-
sound/soc/qcom/sc8280xp.c | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/sound/soc/qcom/common.h b/sound/soc/qcom/common.h
index c1deac109f24..18171656408c 100644
--- a/sound/soc/qcom/common.h
+++ b/sound/soc/qcom/common.h
@@ -7,7 +7,7 @@
#include <dt-bindings/sound/qcom,q6afe.h>
#include <sound/soc.h>
-#define LPASS_MAX_PORT (LPI_MI2S_TX_6 + 1)
+#define LPASS_MAX_PORT (AIF_TDM_TX_12 + 1)
struct qcom_snd_tdm_slot_cfg {
unsigned int tx_mask;
diff --git a/sound/soc/qcom/sc8280xp.c b/sound/soc/qcom/sc8280xp.c
index 4d48e1012cd4..0876b9be136d 100644
--- a/sound/soc/qcom/sc8280xp.c
+++ b/sound/soc/qcom/sc8280xp.c
@@ -260,6 +260,7 @@ static int sc8280xp_snd_hw_params(struct snd_pcm_substream *substream,
case QUINARY_MI2S_RX ... QUINARY_MI2S_TX:
case SENARY_MI2S_RX ... SENARY_MI2S_TX:
case LPI_MI2S_RX_0 ... LPI_MI2S_TX_4:
+ case AIF_MI2S_RX_0 ... AIF_MI2S_TX_12:
ret = snd_soc_dai_set_fmt(cpu_dai, SND_SOC_DAIFMT_BP_FP);
if (ret && ret != -ENOTSUPP)
return ret;
@@ -296,6 +297,7 @@ static int sc8280xp_snd_hw_params(struct snd_pcm_substream *substream,
}
break;
case PRIMARY_TDM_RX_0 ... QUINARY_TDM_TX_7:
+ case AIF_TDM_RX_0 ... AIF_TDM_TX_12:
return sc8280xp_tdm_hw_params(substream, params);
default:
break;
--
2.34.1