Skip to content

Commit 8408513

Browse files
ujfalusibroonie
authored andcommitted
ASoC: SOF: topology: Add context when sink or source widget is missing
Add some context to the error prints when sink or source widget is not found by printing the name of the other side of the connection. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com> Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com> Link: https://patch.msgid.link/20251215130741.31106-1-peter.ujfalusi@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent cb0ae6f commit 8408513

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

sound/soc/sof/topology.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2106,8 +2106,8 @@ static int sof_route_load(struct snd_soc_component *scomp, int index,
21062106
/* source component */
21072107
source_swidget = snd_sof_find_swidget(scomp, (char *)route->source);
21082108
if (!source_swidget) {
2109-
dev_err(scomp->dev, "error: source %s not found\n",
2110-
route->source);
2109+
dev_err(scomp->dev, "source %s for sink %s is not found\n",
2110+
route->source, route->sink);
21112111
ret = -EINVAL;
21122112
goto err;
21132113
}
@@ -2125,8 +2125,8 @@ static int sof_route_load(struct snd_soc_component *scomp, int index,
21252125
/* sink component */
21262126
sink_swidget = snd_sof_find_swidget(scomp, (char *)route->sink);
21272127
if (!sink_swidget) {
2128-
dev_err(scomp->dev, "error: sink %s not found\n",
2129-
route->sink);
2128+
dev_err(scomp->dev, "sink %s for source %s is not found\n",
2129+
route->sink, route->source);
21302130
ret = -EINVAL;
21312131
goto err;
21322132
}

0 commit comments

Comments
 (0)