From ad415fa2e312a250ab9810d5d0f02c82ecd6c6f6 Mon Sep 17 00:00:00 2001 From: Keyon Jie Date: Mon, 1 Jun 2020 13:13:24 +0800 Subject: [PATCH] topology: src: add uuid token support Add the uuid token to src widget for the future use. Signed-off-by: Keyon Jie --- tools/topology/m4/src.m4 | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tools/topology/m4/src.m4 b/tools/topology/m4/src.m4 index 90099a221..5562a9b10 100644 --- a/tools/topology/m4/src.m4 +++ b/tools/topology/m4/src.m4 @@ -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`"'