Skip to content

Commit 624faa9

Browse files
committed
topology: tone: add uuid token support
Add the uuid token to tone widget for the future use. Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
1 parent ad415fa commit 624faa9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tools/topology/m4/tone.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 Define macro for siggen widget
4+
DECLARE_SOF_RT_UUID("tone", tone_uuid, 0x04e3f894, 0x2c5c, 0x4f2e,
5+
0x8d, 0xc1, 0x69, 0x4e, 0xea, 0xab, 0x53, 0xfa)
46

57
dnl N_TONE(name)
68
define(`N_TONE', `TONE'PIPELINE_ID`.'$1)
79

810
dnl W_TONE(name, format, periods_sink, periods_source, core, kcontrols_list)
911
define(`W_TONE',
12+
`SectionVendorTuples."'N_TONE($1)`_tuples_uuid" {'
13+
` tokens "sof_comp_tokens"'
14+
` tuples."uuid" {'
15+
` SOF_TKN_COMP_UUID' STR(tone_uuid)
16+
` }'
17+
`}'
18+
`SectionData."'N_TONE($1)`_data_uuid" {'
19+
` tuples "'N_TONE($1)`_tuples_uuid"'
20+
`}'
1021
`SectionVendorTuples."'N_TONE($1)`_tuples_w" {'
1122
` tokens "sof_comp_tokens"'
1223
` tuples."word" {'
@@ -39,6 +50,7 @@ define(`W_TONE',
3950
` type "siggen"'
4051
` no_pm "true"'
4152
` data ['
53+
` "'N_TONE($1)`_data_uuid"'
4254
` "'N_TONE($1)`_data_w"'
4355
` "'N_TONE($1)`_data_str"'
4456
` ]'

0 commit comments

Comments
 (0)