topology: eq_iir: add uuid token support

Add the uuid token to eq_iir widget for the future use.

Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
This commit is contained in:
Keyon Jie 2020-06-01 12:15:47 +08:00 committed by Keyon Jie
parent a2e69b873b
commit 179a6d1842
1 changed files with 12 additions and 0 deletions

View File

@ -1,12 +1,23 @@
divert(-1)
dnl Define macro for Eq effect widget
DECLARE_SOF_RT_UUID("eq-iir", eq_iir_uuid, 0x5150c0e6, 0x27f9, 0x4ec8,
0x83, 0x51, 0xc7, 0x05, 0xb6, 0x42, 0xd1, 0x2f)
dnl N_EQ_IIR(name)
define(`N_EQ_IIR', `EQIIR'PIPELINE_ID`.'$1)
dnl W_EQ(name, format, periods_sink, periods_source, core, kcontrols_list)
define(`W_EQ_IIR',
`SectionVendorTuples."'N_EQ_IIR($1)`_tuples_uuid" {'
` tokens "sof_comp_tokens"'
` tuples."uuid" {'
` SOF_TKN_COMP_UUID' STR(eq_iir_uuid)
` }'
`}'
`SectionData."'N_EQ_IIR($1)`_data_uuid" {'
` tuples "'N_EQ_IIR($1)`_tuples_uuid"'
`}'
`SectionVendorTuples."'N_EQ_IIR($1)`_tuples_w" {'
` tokens "sof_comp_tokens"'
` tuples."word" {'
@ -41,6 +52,7 @@ define(`W_EQ_IIR',
` type "effect"'
` no_pm "true"'
` data ['
` "'N_EQ_IIR($1)`_data_uuid"'
` "'N_EQ_IIR($1)`_data_w"'
` "'N_EQ_IIR($1)`_data_str"'
` "'N_EQ_IIR($1)`_data_str_type"'