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 <yang.jie@linux.intel.com>
This commit is contained in:
Keyon Jie 2020-05-28 16:09:14 +08:00 committed by Keyon Jie
parent 4572a5a59d
commit ec6b210d8c
1 changed files with 12 additions and 0 deletions

View File

@ -1,12 +1,23 @@
divert(-1) divert(-1)
dnl Define macro for smart_amp(Smart Amplifier) widget 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) dnl SMART_AMP name)
define(`N_SMART_AMP', `SMART_AMP'PIPELINE_ID`.'$1) define(`N_SMART_AMP', `SMART_AMP'PIPELINE_ID`.'$1)
dnl W_SMART_AMP(name, format, periods_sink, periods_source, kcontrols_list) dnl W_SMART_AMP(name, format, periods_sink, periods_source, kcontrols_list)
define(`W_SMART_AMP', 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" {' `SectionVendorTuples."'N_SMART_AMP($1)`_tuples_w" {'
` tokens "sof_comp_tokens"' ` tokens "sof_comp_tokens"'
` tuples."word" {' ` tuples."word" {'
@ -38,6 +49,7 @@ define(`W_SMART_AMP',
` type "effect"' ` type "effect"'
` no_pm "true"' ` no_pm "true"'
` data [' ` data ['
` "'N_SMART_AMP($1)`_data_uuid"'
` "'N_SMART_AMP($1)`_data_w"' ` "'N_SMART_AMP($1)`_data_w"'
` "'N_SMART_AMP($1)`_data_str"' ` "'N_SMART_AMP($1)`_data_str"'
` ]' ` ]'