summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHemalatha Pinnamreddy <hemalatha.pinnamreddy2@amd.com>2025-12-03 17:31:34 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-12-18 14:03:40 +0100
commitf80cf70de9121ea689e88a67c51e68fe2821ae29 (patch)
tree3af4ad1133627c709a8f7ddee6afee71aeffc46e
parentef0cd7b694928573f6569e61c14f5f059253162e (diff)
downloadlinux-f80cf70de9121ea689e88a67c51e68fe2821ae29.tar.gz
linux-f80cf70de9121ea689e88a67c51e68fe2821ae29.tar.bz2
linux-f80cf70de9121ea689e88a67c51e68fe2821ae29.zip
ASoC: amd: acp: update tdm channels for specific DAI
[ Upstream commit f34836a8ddf9216ff919927cddb705022bf30aab ] 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@amd.com> Signed-off-by: Raghavendra Prasad Mallela <raghavendraprasad.mallela@amd.com> Link: https://patch.msgid.link/20251203120136.2591395-1-raghavendraprasad.mallela@amd.com Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r--sound/soc/amd/acp/acp-i2s.c2
1 files changed, 2 insertions, 0 deletions
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: