Skip to content

Commit

Permalink
ASoC: SOF: topology: Use partial match for disconnecting DAI link and…
Browse files Browse the repository at this point in the history
… DAI widget

We use partial match for connecting DAI link and DAI widget. We need to
use partial match for disconnecting, too.

Fixes: fe88788 ("ASoC: SOF: topology: Use partial match for connecting DAI link and DAI widget")
Signed-off-by: Bard Liao <[email protected]>
  • Loading branch information
bardliao committed Oct 20, 2023
1 parent 0ca0a44 commit 00595db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/sof/topology.c
Original file line number Diff line number Diff line change
Expand Up @@ -1134,7 +1134,7 @@ static void sof_disconnect_dai_widget(struct snd_soc_component *scomp,
list_for_each_entry(rtd, &card->rtd_list, list) {
/* does stream match DAI link ? */
if (!rtd->dai_link->stream_name ||
strcmp(sname, rtd->dai_link->stream_name))
!strstr(rtd->dai_link->stream_name, sname))
continue;

for_each_rtd_cpu_dais(rtd, i, cpu_dai)
Expand Down

0 comments on commit 00595db

Please sign in to comment.