Skip to content

Commit f34836a

Browse files
Hemalatha Pinnamreddybroonie
authored andcommitted
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: 12229b7 ("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>
1 parent a061deb commit f34836a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

sound/soc/amd/acp/acp-i2s.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ static int acp_i2s_set_tdm_slot(struct snd_soc_dai *dai, u32 tx_mask, u32 rx_mas
157157

158158
spin_lock_irq(&chip->acp_lock);
159159
list_for_each_entry(stream, &chip->stream_list, list) {
160+
if (dai->id != stream->dai_id)
161+
continue;
160162
switch (chip->acp_rev) {
161163
case ACP_RN_PCI_ID:
162164
case ACP_RMB_PCI_ID:

0 commit comments

Comments
 (0)