From: Ranjani Sridharan Date: Sun, 13 Jun 2021 03:24:15 +0000 (-0700) Subject: pre-process-dapm: fix source and sink for DAPM routes X-Git-Tag: v1.2.6~33 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=268f599d246d3167755132e723cb416faaa6f936;p=alsa-utils.git 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 --- 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;