From 4992360583731c548c57a68903ce5fa826492139 Mon Sep 17 00:00:00 2001 From: Kai Vehmanen Date: Fri, 24 Jan 2025 14:29:14 +0200 Subject: [PATCH] ASoc: SOF: topology: connect DAI to a single DAI link Due to partial matching, DAI stream name may match to multiple DAI links. Break out when a match is found as only a single link can be connected to a SOF DAI object. Fixes: fe88788779fc ("ASoC: SOF: topology: Use partial match for connecting DAI link and DAI widget") Link: https://github.com/thesofproject/linux/issues/5308 Signed-off-by: Kai Vehmanen --- sound/soc/sof/topology.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/sof/topology.c b/sound/soc/sof/topology.c index 688cc7ac17148a..3f49eb0692b5e1 100644 --- a/sound/soc/sof/topology.c +++ b/sound/soc/sof/topology.c @@ -1106,6 +1106,7 @@ static int sof_connect_dai_widget(struct snd_soc_component *scomp, dai->name = rtd->dai_link->name; dev_dbg(scomp->dev, "tplg: connected widget %s -> DAI link %s\n", w->name, rtd->dai_link->name); + break; } end: /* check we have a connection */