From 93d159d7fb435b648ab7aa4e0000ceff711157de Mon Sep 17 00:00:00 2001 From: Rander Wang Date: Tue, 13 Sep 2022 10:56:47 +0800 Subject: [PATCH] topology2: add lp_mode as a attribute in pipeline Currently lp_mode setting is not included by topology binary since lp_mode is not defined as a attribute. This patch adds it in pipeline. Signed-off-by: Rander Wang --- .../topology2/include/components/pipeline.conf | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tools/topology/topology2/include/components/pipeline.conf b/tools/topology/topology2/include/components/pipeline.conf index 0829eac96..e9789cd98 100644 --- a/tools/topology/topology2/include/components/pipeline.conf +++ b/tools/topology/topology2/include/components/pipeline.conf @@ -84,6 +84,17 @@ Class.Widget."pipeline" { token_ref "sof_tkn_scheduler.word" } + DefineAttribute."lp_mode" { + # Token reference and type + token_ref "sof_tkn_scheduler.word" + constraints { + !tuple_values [ + 1 + 0 + ] + } + } + attributes { # pipeline widget name will be constructed as pipeline.1, pipeline.2 etc !constructor [