From: Bard Liao Date: Mon, 4 Dec 2023 21:47:10 +0000 (-0600) Subject: ASoC: SOF: topology: Use partial match for disconnecting DAI link and DAI widget X-Git-Tag: v6.6.14~326 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=61dfc431742511675ccdfff352e523de2f24c376;p=platform%2Fkernel%2Flinux-starfive.git ASoC: SOF: topology: Use partial match for disconnecting DAI link and DAI widget [ Upstream commit 2f03970198d6438d95b96f69041254bd39aafed0 ] We use partial match for connecting DAI link and DAI widget. We need to use partial match for disconnecting, too. Fixes: fe88788779fc ("ASoC: SOF: topology: Use partial match for connecting DAI link and DAI widget") Reviewed-by: Ranjani Sridharan Signed-off-by: Bard Liao Signed-off-by: Pierre-Louis Bossart Link: https://lore.kernel.org/r/20231204214713.208951-2-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- diff --git a/sound/soc/sof/topology.c b/sound/soc/sof/topology.c index 37ec671..7133ec1 100644 --- a/sound/soc/sof/topology.c +++ b/sound/soc/sof/topology.c @@ -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)