sof/tools/topology/topology1/m4/src.m4

53 lines
1.2 KiB
Plaintext

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" {'
` SOF_TKN_COMP_PERIOD_SINK_COUNT' STR($3)
` SOF_TKN_COMP_PERIOD_SOURCE_COUNT' STR($4)
` }'
`}'
`SectionData."'N_SRC($1)`_data_w" {'
` tuples "'N_SRC($1)`_tuples_w"'
`}'
`SectionVendorTuples."'N_SRC($1)`_tuples_str" {'
` tokens "sof_comp_tokens"'
` tuples."string" {'
` SOF_TKN_COMP_FORMAT' STR($2)
` }'
`}'
`SectionData."'N_SRC($1)`_data_str" {'
` tuples "'N_SRC($1)`_tuples_str"'
`}'
`SectionWidget."'N_SRC($1)`" {'
` index "'PIPELINE_ID`"'
` type "src"'
` no_pm "true"'
` data ['
` "'N_SRC($1)`_data_uuid"'
` "'N_SRC($1)`_data_w"'
` "'N_SRC($1)`_data_str"'
` "'$5`"'
` ]'
`}')
divert(0)dnl