Skip to content

Commit ad415fa

Browse files
committed
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>
1 parent 33c3663 commit ad415fa

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tools/topology/m4/src.m4

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,23 @@
11
divert(-1)
22

33
dnl Defines the macro for SRC widget
4+
DECLARE_SOF_RT_UUID("src", src_uuid, 0xc1c5326d, 0x8390, 0x46b4,
5+
0xaa, 0x47, 0x95, 0xc3, 0xbe, 0xca, 0x65, 0x50)
46

57
dnl SRC name)
68
define(`N_SRC', `SRC'PIPELINE_ID`.'$1)
79

810
dnl W_SRC(name, format, periods_sink, periods_source, data)
911
define(`W_SRC',
12+
`SectionVendorTuples."'N_SRC($1)`_tuples_uuid" {'
13+
` tokens "sof_comp_tokens"'
14+
` tuples."uuid" {'
15+
` SOF_TKN_COMP_UUID' STR(src_uuid)
16+
` }'
17+
`}'
18+
`SectionData."'N_SRC($1)`_data_uuid" {'
19+
` tuples "'N_SRC($1)`_tuples_uuid"'
20+
`}'
1021
`SectionVendorTuples."'N_SRC($1)`_tuples_w" {'
1122
` tokens "sof_comp_tokens"'
1223
` tuples."word" {'
@@ -31,6 +42,7 @@ define(`W_SRC',
3142
` type "src"'
3243
` no_pm "true"'
3344
` data ['
45+
` "'N_SRC($1)`_data_uuid"'
3446
` "'N_SRC($1)`_data_w"'
3547
` "'N_SRC($1)`_data_str"'
3648
` "'$5`"'

0 commit comments

Comments
 (0)