mirror of https://github.com/thesofproject/sof.git
topology: asrc: add uuid token support
Add the uuid token to asrc widget for the future use. Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
This commit is contained in:
parent
6f0b68f3fd
commit
3e64d47620
|
@ -1,12 +1,23 @@
|
|||
divert(-1)
|
||||
|
||||
dnl Defines the macro for ASRC widget
|
||||
DECLARE_SOF_RT_UUID("asrc", asrc_uuid, 0xc8ec72f6, 0x8526, 0x4faf,
|
||||
0x9d, 0x39, 0xa2, 0x3d, 0x0b, 0x54, 0x1d, 0xe2)
|
||||
|
||||
dnl ASRC name)
|
||||
define(`N_ASRC', `ASRC'PIPELINE_ID`.'$1)
|
||||
|
||||
dnl W_ASRC(name, format, periods_sink, periods_source, data)
|
||||
define(`W_ASRC',
|
||||
`SectionVendorTuples."'N_ASRC($1)`_tuples_uuid" {'
|
||||
` tokens "sof_comp_tokens"'
|
||||
` tuples."uuid" {'
|
||||
` SOF_TKN_COMP_UUID' STR(asrc_uuid)
|
||||
` }'
|
||||
`}'
|
||||
`SectionData."'N_ASRC($1)`_data_uuid" {'
|
||||
` tuples "'N_ASRC($1)`_tuples_uuid"'
|
||||
`}'
|
||||
`SectionVendorTuples."'N_ASRC($1)`_tuples_w" {'
|
||||
` tokens "sof_comp_tokens"'
|
||||
` tuples."word" {'
|
||||
|
@ -31,6 +42,7 @@ define(`W_ASRC',
|
|||
` type "asrc"'
|
||||
` no_pm "true"'
|
||||
` data ['
|
||||
` "'N_ASRC($1)`_data_uuid"'
|
||||
` "'N_ASRC($1)`_data_w"'
|
||||
` "'N_ASRC($1)`_data_str"'
|
||||
` "'$5`"'
|
||||
|
|
Loading…
Reference in New Issue