topology: mixer: add uuid token support

Add the uuid token to mixer 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:19:12 +08:00 committed by Keyon Jie
parent 179a6d1842
commit 8a438296ed
1 changed files with 12 additions and 0 deletions

View File

@ -1,6 +1,8 @@
divert(-1)
dnl Define macro for Mixer widget
DECLARE_SOF_RT_UUID("mixer", mixer_uuid, 0xbc06c037, 0x12aa, 0x417c,
0x9a, 0x97, 0x89, 0x28, 0x2e, 0x32, 0x1a, 0x76)
dnl N_MIXER(name)
define(`N_MIXER', `MIXER'PIPELINE_ID`.'$1)
@ -10,6 +12,15 @@ define(`NPIPELINE_MIXER', `MIXER'$1`.'$2)
dnl W_MIXER(name, format, periods_sink, periods_source, core)
define(`W_MIXER',
`SectionVendorTuples."'N_MIXER($1)`_tuples_uuid" {'
` tokens "sof_comp_tokens"'
` tuples."uuid" {'
` SOF_TKN_COMP_UUID' STR(mixer_uuid)
` }'
`}'
`SectionData."'N_MIXER($1)`_data_uuid" {'
` tuples "'N_MIXER($1)`_tuples_uuid"'
`}'
`SectionVendorTuples."'N_MIXER($1)`_tuples_w" {'
` tokens "sof_comp_tokens"'
` tuples."word" {'
@ -35,6 +46,7 @@ define(`W_MIXER',
` type "mixer"'
` no_pm "true"'
` data ['
` "'N_MIXER($1)`_data_uuid"'
` "'N_MIXER($1)`_data_w"'
` "'N_MIXER($1)`_data_str"'
` ]'