[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20251203120136.2591395-1-raghavendraprasad.mallela@amd.com>
Date: Wed, 3 Dec 2025 17:31:34 +0530
From: Raghavendra Prasad Mallela <raghavendraprasad.mallela@....com>
To: <broonie@...nel.org>, <alsa-devel@...a-project.org>
CC: <Vijendar.Mukunda@....com>, <Basavaraj.Hiregoudar@....com>,
<Sunil-kumar.Dommati@....com>, Hemalatha Pinnamreddy
<hemalatha.pinnamreddy2@....com>, Raghavendra Prasad Mallela
<raghavendraprasad.mallela@....com>, Liam Girdwood <lgirdwood@...il.com>,
Jaroslav Kysela <perex@...ex.cz>, Takashi Iwai <tiwai@...e.com>, "Venkata
Prasad Potturu" <venkataprasad.potturu@....com>, Daniel Baluta
<daniel.baluta@....com>, Bard Liao <yung-chuan.liao@...ux.intel.com>, "open
list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM..."
<linux-sound@...r.kernel.org>, open list <linux-kernel@...r.kernel.org>
Subject: [PATCH v1] ASoC: amd: acp: update tdm channels for specific DAI
From: Hemalatha Pinnamreddy <hemalatha.pinnamreddy2@....com>
TDM channel updates were applied to all DAIs, causing configurations
to overwrite for unrelated streams. The logic is modified to update
channels only for targeted DAI. This prevents corruption of other DAI
settings and resolves audio issues observed during system suspend and
resume cycles.
Fixes: 12229b7e50cf ("ASoC: amd: acp: Add TDM support for acp i2s stream")
Signed-off-by: Hemalatha Pinnamreddy <hemalatha.pinnamreddy2@....com>
Signed-off-by: Raghavendra Prasad Mallela <raghavendraprasad.mallela@....com>
---
sound/soc/amd/acp/acp-i2s.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sound/soc/amd/acp/acp-i2s.c b/sound/soc/amd/acp/acp-i2s.c
index 4ba0a66981ea..283a674c7e2c 100644
--- a/sound/soc/amd/acp/acp-i2s.c
+++ b/sound/soc/amd/acp/acp-i2s.c
@@ -157,6 +157,8 @@ static int acp_i2s_set_tdm_slot(struct snd_soc_dai *dai, u32 tx_mask, u32 rx_mas
spin_lock_irq(&chip->acp_lock);
list_for_each_entry(stream, &chip->stream_list, list) {
+ if (dai->id != stream->dai_id)
+ continue;
switch (chip->acp_rev) {
case ACP_RN_PCI_ID:
case ACP_RMB_PCI_ID:
--
2.17.1
Powered by blists - more mailing lists