divert(-1) dnl Define macro for CODEC_ADAPTER widget DECLARE_SOF_RT_UUID("codec_adapter", ca_uuid, 0xd8218443, 0x5ff3, 0x4a4c, 0xb3, 0x88, 0x6c, 0xfe, 0x07, 0xb9, 0x56, 0xaa); dnl N_CODEC_ADAPTER(name) define(`N_CODEC_ADAPTER', `CODEC_ADAPTER'PIPELINE_ID`.'$1) dnl W_CODEC_ADAPTER(name, format, periods_sink, periods_source, core, kcontrol0. kcontrol1...etc) define(`W_CODEC_ADAPTER', `SectionVendorTuples."'N_CODEC_ADAPTER($1)`_tuples_uuid" {' ` tokens "sof_comp_tokens"' ` tuples."uuid" {' ` SOF_TKN_COMP_UUID' STR(ca_uuid) ` }' `}' `SectionData."'N_CODEC_ADAPTER($1)`_data_uuid" {' ` tuples "'N_CODEC_ADAPTER($1)`_tuples_uuid"' `}' `SectionVendorTuples."'N_CODEC_ADAPTER($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_CORE_ID' STR($5) ` }' `}' `SectionData."'N_CODEC_ADAPTER($1)`_data_w" {' ` tuples "'N_CODEC_ADAPTER($1)`_tuples_w"' `}' `SectionVendorTuples."'N_CODEC_ADAPTER($1)`_tuples_str" {' ` tokens "sof_comp_tokens"' ` tuples."string" {' ` SOF_TKN_COMP_FORMAT' STR($2) ` }' `}' `SectionData."'N_CODEC_ADAPTER($1)`_data_str" {' ` tuples "'N_CODEC_ADAPTER($1)`_tuples_str"' `}' `SectionWidget.ifdef(`CODEC_ADAPTER_NAME', "`CODEC_ADAPTER_NAME'", "`N_CODEC_ADAPTER($1)'") {' ` index "'PIPELINE_ID`"' ` type "effect"' ` no_pm "true"' ` data [' ` "'N_CODEC_ADAPTER($1)`_data_uuid"' ` "'N_CODEC_ADAPTER($1)`_data_w"' ` "'N_CODEC_ADAPTER($1)`_data_str"' ` ]' ` bytes [' $6 ` ]' `}') divert(0)dnl