Unverified Commit f34836a8 authored by Hemalatha Pinnamreddy's avatar Hemalatha Pinnamreddy Committed by Mark Brown
Browse files

ASoC: amd: acp: update tdm channels for specific DAI



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: 12229b7e ("ASoC: amd: acp: Add TDM support for acp i2s stream")
Signed-off-by: default avatarHemalatha Pinnamreddy <hemalatha.pinnamreddy2@amd.com>
Signed-off-by: default avatarRaghavendra Prasad Mallela <raghavendraprasad.mallela@amd.com>
Link: https://patch.msgid.link/20251203120136.2591395-1-raghavendraprasad.mallela@amd.com


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