topology: src: add uuid token support

Add the uuid token to src 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 13:13:24 +08:00 committed by Keyon Jie
parent 33c3663114
commit ad415fa2e3
1 changed files with 12 additions and 0 deletions

View File

@ -1,12 +1,23 @@
divert(-1)
dnl Defines the macro for SRC widget
DECLARE_SOF_RT_UUID("src", src_uuid, 0xc1c5326d, 0x8390, 0x46b4,
0xaa, 0x47, 0x95, 0xc3, 0xbe, 0xca, 0x65, 0x50)
dnl SRC name)
define(`N_SRC', `SRC'PIPELINE_ID`.'$1)
dnl W_SRC(name, format, periods_sink, periods_source, data)
define(`W_SRC',
`SectionVendorTuples."'N_SRC($1)`_tuples_uuid" {'
` tokens "sof_comp_tokens"'
` tuples."uuid" {'
` SOF_TKN_COMP_UUID' STR(src_uuid)
` }'
`}'
`SectionData."'N_SRC($1)`_data_uuid" {'
` tuples "'N_SRC($1)`_tuples_uuid"'
`}'
`SectionVendorTuples."'N_SRC($1)`_tuples_w" {'
` tokens "sof_comp_tokens"'
` tuples."word" {'
@ -31,6 +42,7 @@ define(`W_SRC',
` type "src"'
` no_pm "true"'
` data ['
` "'N_SRC($1)`_data_uuid"'
` "'N_SRC($1)`_data_w"'
` "'N_SRC($1)`_data_str"'
` "'$5`"'