sof/tools/topology/m4/eq_iir.m4

54 lines
1.2 KiB
Plaintext

divert(-1)
dnl Define macro for Eq effect widget
dnl EQ name)
define(`N_EQ_IIR', `EQIIR'PIPELINE_ID`.'$1)
dnl W_EQ(name, format, periods_sink, periods_source, preload, kcontrols_list)
define(`W_EQ_IIR',
`SectionVendorTuples."'N_EQ_IIR($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)
` SOF_TKN_COMP_PRELOAD_COUNT' STR($5)
` }'
`}'
`SectionData."'N_EQ_IIR($1)`_data_w" {'
` tuples "'N_EQ_IIR($1)`_tuples_w"'
`}'
`SectionVendorTuples."'N_EQ_IIR($1)`_tuples_str" {'
` tokens "sof_comp_tokens"'
` tuples."string" {'
` SOF_TKN_COMP_FORMAT' STR($2)
` }'
`}'
`SectionData."'N_EQ_IIR($1)`_data_str" {'
` tuples "'N_EQ_IIR($1)`_tuples_str"'
`}'
`SectionVendorTuples."'N_EQ_IIR($1)`_tuples_str_type" {'
` tokens "sof_effect_tokens"'
` tuples."string" {'
` SOF_TKN_EFFECT_TYPE' "EQIIR"
` }'
`}'
`SectionData."'N_EQ_IIR($1)`_data_str_type" {'
` tuples "'N_EQ_IIR($1)`_tuples_str_type"'
`}'
`SectionWidget."'N_EQ_IIR($1)`" {'
` index "'PIPELINE_ID`"'
` type "effect"'
` no_pm "true"'
` data ['
` "'N_EQ_IIR($1)`_data_w"'
` "'N_EQ_IIR($1)`_data_str"'
` "'N_EQ_IIR($1)`_data_str_type"'
` ]'
` bytes ['
$6
` ]'
`}')
divert(0)dnl