]> git.alsa-project.org Git - alsa-utils.git/commitdiff
pre-process-dapm: fix source and sink for DAPM routes
authorRanjani Sridharan <ranjani.sridharan@linux.intel.com>
Sun, 13 Jun 2021 03:24:15 +0000 (20:24 -0700)
committerJaroslav Kysela <perex@perex.cz>
Mon, 23 Aug 2021 14:49:56 +0000 (16:49 +0200)
Switch source and sink widgets in the DAPM route.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
topology/pre-process-dapm.c

index 647e66bba6ce3537e85dd49a0c1208e914278432..7ae431ab07ea9f82d4c6033ffd65e083f2e2b6ad 100644 (file)
@@ -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;