sof/tools/topology/topology1/m4/kpbm.m4

63 lines
1.5 KiB
Plaintext

divert(-1)
dnl Define macro for Key Phrase Buffer Manager(kpbm) widget
DECLARE_SOF_RT_UUID("kpb", kpb_uuid, 0xd8218443, 0x5ff3, 0x4a4c,
0xb3, 0x88, 0x6c, 0xfe, 0x07, 0xb9, 0x56, 0x2e)
dnl N_KPBM(name)
define(`N_KPBM', `KPBM'$2`.'$1)
dnl W_KPBM(name, format, periods_sink, periods_source, pipeline_id, core, kcontrols_list)
define(`W_KPBM',
`SectionVendorTuples."'N_KPBM($1)`_tuples_uuid" {'
` tokens "sof_comp_tokens"'
` tuples."uuid" {'
` SOF_TKN_COMP_UUID' STR(kpb_uuid)
` }'
`}'
`SectionData."'N_KPBM($1)`_data_uuid" {'
` tuples "'N_KPBM($1)`_tuples_uuid"'
`}'
`SectionVendorTuples."'N_KPBM($1, $5)`_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_CORE_ID' STR($6)
` }'
`}'
`SectionData."'N_KPBM($1, $5)`_data_w" {'
` tuples "'N_KPBM($1, $5)`_tuples_w"'
`}'
`SectionVendorTuples."'N_KPBM($1, $5)`_tuples_str" {'
` tokens "sof_comp_tokens"'
` tuples."string" {'
` SOF_TKN_COMP_FORMAT' STR($2)
` }'
`}'
`SectionVendorTuples."'N_KPBM($1)`_process_tuples_str" {'
` tokens "sof_process_tokens"'
` tuples."string" {'
` SOF_TKN_PROCESS_TYPE' "KPB"
` }'
`}'
`SectionData."'N_KPBM($1, $5)`_data_str" {'
` tuples "'N_KPBM($1, $5)`_tuples_str"'
` tuples "'N_KPBM($1)`_process_tuples_str"'
`}'
`SectionWidget."'N_KPBM($1, $5)`" {'
` index STR($5)'
` type "effect"'
` no_pm "true"'
` data ['
` "'N_KPBM($1)`_data_uuid"'
` "'N_KPBM($1, $5)`_data_w"'
` "'N_KPBM($1, $5)`_data_str"'
` ]'
` bytes ['
$7
` ]'
`}')
divert(0)dnl