pre-process-dapm: fix source and sink for DAPM routes

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>
This commit is contained in:
Ranjani Sridharan 2021-06-12 20:24:15 -07:00 committed by Jaroslav Kysela
parent 48ebb1dc0c
commit 268f599d24

View 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;