Unverified Commit 84085139 authored by Peter Ujfalusi's avatar Peter Ujfalusi Committed by Mark Brown
Browse files

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: default avatarPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: default avatarBard Liao <yung-chuan.liao@linux.intel.com>
Link: https://patch.msgid.link/20251215130741.31106-1-peter.ujfalusi@linux.intel.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent cb0ae6f2
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -2106,8 +2106,8 @@ static int sof_route_load(struct snd_soc_component *scomp, int index,
	/* source component */
	source_swidget = snd_sof_find_swidget(scomp, (char *)route->source);
	if (!source_swidget) {
		dev_err(scomp->dev, "error: source %s not found\n",
			route->source);
		dev_err(scomp->dev, "source %s for sink %s is not found\n",
			route->source, route->sink);
		ret = -EINVAL;
		goto err;
	}
@@ -2125,8 +2125,8 @@ static int sof_route_load(struct snd_soc_component *scomp, int index,
	/* sink component */
	sink_swidget = snd_sof_find_swidget(scomp, (char *)route->sink);
	if (!sink_swidget) {
		dev_err(scomp->dev, "error: sink %s not found\n",
			route->sink);
		dev_err(scomp->dev, "sink %s for source %s is not found\n",
			route->sink, route->source);
		ret = -EINVAL;
		goto err;
	}