Skip to content

Commit 3ae7c1f

Browse files
ujfalusibardliao
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>
1 parent dc3ad7e commit 3ae7c1f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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)