From 01cb71c7a5dc263658e52e3fd17a8449bbd31b5b Mon Sep 17 00:00:00 2001 From: Ranjani Sridharan Date: Sat, 12 Jun 2021 20:08:28 -0700 Subject: [PATCH] topology: utils: remove DAPM routes for virtual widgets Remove the addition of DAPM routes for virtual widgets. These are not needed for suppressing errors with legacy machine drivers. Just adding the virtual widget is enough. Signed-off-by: Ranjani Sridharan --- tools/topology/topology1/m4/utils.m4 | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/tools/topology/topology1/m4/utils.m4 b/tools/topology/topology1/m4/utils.m4 index a59de5050bd0..b491a7dd5c4d 100644 --- a/tools/topology/topology1/m4/utils.m4 +++ b/tools/topology/topology1/m4/utils.m4 @@ -101,33 +101,21 @@ define(`W_DATA', `}') dnl VIRTUAL_DAPM_ROUTE_OUT(name, dai type, dai index, direction, index) +dnl No routes needed. Macro retained for simplicity define(`VIRTUAL_DAPM_ROUTE_OUT', `SectionWidget.STR($1) {' ` index STR($5)' ` type "output"' ` no_pm "true"' -`}' -`SectionGraph.STR($2) {' -` index STR($5)' -`' -` lines [' -` dapm($1,$2$3.$4)' -` ]' `}') dnl VIRTUAL_DAPM_ROUTE_IN(name, dai type, dai index, direction, index) +dnl No routes needed. Macro retained for simplicity define(`VIRTUAL_DAPM_ROUTE_IN', `SectionWidget.STR($1) {' ` index STR($5)' ` type "input"' ` no_pm "true"' -`}' -`SectionGraph.STR($2) {' -` index STR($5)' -`' -` lines [' -` dapm($2$3.$4, $1)' -` ]' `}') dnl VIRTUAL_WIDGET(name, type, index)