From 268f599d246d3167755132e723cb416faaa6f936 Mon Sep 17 00:00:00 2001 From: Ranjani Sridharan Date: Sat, 12 Jun 2021 20:24:15 -0700 Subject: [PATCH] pre-process-dapm: fix source and sink for DAPM routes Switch source and sink widgets in the DAPM route. Signed-off-by: Ranjani Sridharan Signed-off-by: Jaroslav Kysela --- topology/pre-process-dapm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/topology/pre-process-dapm.c b/topology/pre-process-dapm.c index 647e66b..7ae431a 100644 --- a/topology/pre-process-dapm.c +++ b/topology/pre-process-dapm.c @@ -406,7 +406,7 @@ int tplg_build_dapm_route_object(struct tplg_pre_processor *tplg_pp, snd_config_ goto err; } - line_str = tplg_snprintf("%s, %s, %s", src_widget_name, control, sink_widget_name); + line_str = tplg_snprintf("%s, %s, %s", sink_widget_name, control, src_widget_name); if (!line_str) { ret = -ENOMEM; goto err; -- 2.47.1