Skip to content

Commit

Permalink
topology: tone: add uuid token support
Browse files Browse the repository at this point in the history
Add the uuid token to tone widget for the future use.

Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
  • Loading branch information
keyonjie committed Aug 13, 2020
1 parent ad415fa commit 624faa9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tools/topology/m4/tone.m4
Original file line number Diff line number Diff line change
@@ -1,12 +1,23 @@
divert(-1)

dnl Define macro for siggen widget
DECLARE_SOF_RT_UUID("tone", tone_uuid, 0x04e3f894, 0x2c5c, 0x4f2e,
0x8d, 0xc1, 0x69, 0x4e, 0xea, 0xab, 0x53, 0xfa)

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

dnl W_TONE(name, format, periods_sink, periods_source, core, kcontrols_list)
define(`W_TONE',
`SectionVendorTuples."'N_TONE($1)`_tuples_uuid" {'
` tokens "sof_comp_tokens"'
` tuples."uuid" {'
` SOF_TKN_COMP_UUID' STR(tone_uuid)
` }'
`}'
`SectionData."'N_TONE($1)`_data_uuid" {'
` tuples "'N_TONE($1)`_tuples_uuid"'
`}'
`SectionVendorTuples."'N_TONE($1)`_tuples_w" {'
` tokens "sof_comp_tokens"'
` tuples."word" {'
Expand Down Expand Up @@ -39,6 +50,7 @@ define(`W_TONE',
` type "siggen"'
` no_pm "true"'
` data ['
` "'N_TONE($1)`_data_uuid"'
` "'N_TONE($1)`_data_w"'
` "'N_TONE($1)`_data_str"'
` ]'
Expand Down

0 comments on commit 624faa9

Please sign in to comment.