topology: add support for channel selector component in topology

Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
This commit is contained in:
Keyon Jie 2019-02-20 16:19:10 +08:00 committed by Liam Girdwood
parent 082122556a
commit 5711211e0d
1 changed files with 46 additions and 0 deletions

View File

@ -0,0 +1,46 @@
divert(-1)
dnl Define macro for channel selector widget
dnl Selector name)
define(`N_SELECTOR', `SELECTOR'PIPELINE_ID`.'$1)
dnl W_SELECTOR(name, format, periods_sink, periods_source, in_chan_cnt, out_chan_cnt, sel_chan_index)
define(`W_SELECTOR',
`SectionVendorTuples."'N_SELECTOR($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_SELECTOR($1)`_data_w" {'
` tuples "'N_SELECTOR($1)`_tuples_w"'
`}'
`SectionVendorTuples."'N_SELECTOR($1)`_tuples_str" {'
` tokens "sof_comp_tokens"'
` tuples."string" {'
` SOF_TKN_COMP_FORMAT' STR($2)
` }'
`}'
`SectionVendorTuples."'N_SELECTOR($1)`_process_tuples_str" {'
` tokens "sof_process_tokens"'
` tuples."string" {'
` SOF_TKN_PROCESS_TYPE' "CHAN_SELECTOR"
` }'
`}'
`SectionData."'N_SELECTOR($1)`_data_str" {'
` tuples "'N_SELECTOR($1)`_tuples_str"'
` tuples "'N_SELECTOR($1)`_process_tuples_str"'
`}'
`SectionWidget."'N_SELECTOR($1)`" {'
` index "'PIPELINE_ID`"'
` type "effect"'
` no_pm "true"'
` data ['
` "'N_SELECTOR($1)`_data_w"'
` "'N_SELECTOR($1)`_data_str"'
` ]'
`}')
divert(0)dnl