From ec6b210d8ce0af841ca10cc6bb2de37d757d66d8 Mon Sep 17 00:00:00 2001 From: Keyon Jie Date: Thu, 28 May 2020 16:09:14 +0800 Subject: [PATCH] topology: smart_amp: add uuid token to the widget Add the uuid token to smart_amp widget for the future use. Signed-off-by: Keyon Jie --- tools/topology/m4/smart_amp.m4 | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tools/topology/m4/smart_amp.m4 b/tools/topology/m4/smart_amp.m4 index 3f78f9471..3afac3e32 100644 --- a/tools/topology/m4/smart_amp.m4 +++ b/tools/topology/m4/smart_amp.m4 @@ -1,12 +1,23 @@ divert(-1) dnl Define macro for smart_amp(Smart Amplifier) widget +DECLARE_SOF_RT_UUID("smart_amp-test", smart_amp_comp_uuid, 0x167a961e, 0x8ae4, + 0x11ea, 0x89, 0xf1, 0x00, 0x0c, 0x29, 0xce, 0x16, 0x35) dnl SMART_AMP name) define(`N_SMART_AMP', `SMART_AMP'PIPELINE_ID`.'$1) dnl W_SMART_AMP(name, format, periods_sink, periods_source, kcontrols_list) define(`W_SMART_AMP', +`SectionVendorTuples."'N_SMART_AMP($1)`_tuples_uuid" {' +` tokens "sof_comp_tokens"' +` tuples."uuid" {' +` SOF_TKN_COMP_UUID' STR(smart_amp_comp_uuid) +` }' +`}' +`SectionData."'N_SMART_AMP($1)`_data_uuid" {' +` tuples "'N_SMART_AMP($1)`_tuples_uuid"' +`}' `SectionVendorTuples."'N_SMART_AMP($1)`_tuples_w" {' ` tokens "sof_comp_tokens"' ` tuples."word" {' @@ -38,6 +49,7 @@ define(`W_SMART_AMP', ` type "effect"' ` no_pm "true"' ` data [' +` "'N_SMART_AMP($1)`_data_uuid"' ` "'N_SMART_AMP($1)`_data_w"' ` "'N_SMART_AMP($1)`_data_str"' ` ]'