Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: SOF: topology: Use partial match for disconnecting DAI link and DAI widget

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 <ranjani.sridharan@linux.intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20231204214713.208951-2-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Bard Liao and committed by
Mark Brown
2f039701 8ea08258

+1 -1
+1 -1
sound/soc/sof/topology.c
··· 1135 1135 list_for_each_entry(rtd, &card->rtd_list, list) { 1136 1136 /* does stream match DAI link ? */ 1137 1137 if (!rtd->dai_link->stream_name || 1138 - strcmp(sname, rtd->dai_link->stream_name)) 1138 + !strstr(rtd->dai_link->stream_name, sname)) 1139 1139 continue; 1140 1140 1141 1141 for_each_rtd_cpu_dais(rtd, i, cpu_dai)