2018-09-10 00:22:42 +08:00
|
|
|
divert(-1)
|
|
|
|
|
|
|
|
dnl Define macro for Eq effect widget
|
|
|
|
|
|
|
|
dnl EQ name)
|
|
|
|
define(`N_EQ_FIR', `EQFIR'PIPELINE_ID`.'$1)
|
|
|
|
|
2019-02-27 09:29:40 +08:00
|
|
|
dnl W_EQ(name, format, periods_sink, periods_source, kcontrols_list)
|
2018-09-10 00:22:42 +08:00
|
|
|
define(`W_EQ_FIR',
|
|
|
|
`SectionVendorTuples."'N_EQ_FIR($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_EQ_FIR($1)`_data_w" {'
|
|
|
|
` tuples "'N_EQ_FIR($1)`_tuples_w"'
|
|
|
|
`}'
|
|
|
|
`SectionVendorTuples."'N_EQ_FIR($1)`_tuples_str" {'
|
|
|
|
` tokens "sof_comp_tokens"'
|
|
|
|
` tuples."string" {'
|
|
|
|
` SOF_TKN_COMP_FORMAT' STR($2)
|
|
|
|
` }'
|
|
|
|
`}'
|
|
|
|
`SectionData."'N_EQ_FIR($1)`_data_str" {'
|
|
|
|
` tuples "'N_EQ_FIR($1)`_tuples_str"'
|
|
|
|
`}'
|
|
|
|
`SectionVendorTuples."'N_EQ_FIR($1)`_tuples_str_type" {'
|
2019-03-05 18:43:39 +08:00
|
|
|
` tokens "sof_process_tokens"'
|
2018-09-10 00:22:42 +08:00
|
|
|
` tuples."string" {'
|
2019-03-05 18:43:39 +08:00
|
|
|
` SOF_TKN_PROCESS_TYPE' "EQFIR"
|
2018-09-10 00:22:42 +08:00
|
|
|
` }'
|
|
|
|
`}'
|
|
|
|
`SectionData."'N_EQ_FIR($1)`_data_str_type" {'
|
|
|
|
` tuples "'N_EQ_FIR($1)`_tuples_str_type"'
|
|
|
|
`}'
|
|
|
|
`SectionWidget."'N_EQ_FIR($1)`" {'
|
|
|
|
` index "'PIPELINE_ID`"'
|
|
|
|
` type "effect"'
|
|
|
|
` no_pm "true"'
|
|
|
|
` data ['
|
|
|
|
` "'N_EQ_FIR($1)`_data_w"'
|
|
|
|
` "'N_EQ_FIR($1)`_data_str"'
|
|
|
|
` "'N_EQ_FIR($1)`_data_str_type"'
|
|
|
|
` ]'
|
|
|
|
` bytes ['
|
2019-02-27 09:29:40 +08:00
|
|
|
$5
|
2018-09-10 00:22:42 +08:00
|
|
|
` ]'
|
|
|
|
`}')
|
|
|
|
|
|
|
|
divert(0)dnl
|