audioreach-topology/audioreach/stream-subgraph.m4
Krzysztof Kozlowski 81a74f825f audioreach: add support for LPASS v11.0.0
LPASS v11.0.0 breaks backward compatibility and legacy container
capability IDs are not working anymore.  Add a trailing argument to
stream-subgraph.m4 with LPASS compatibility version.  If v11.0.0 is
requested, use new defines for container capability ID.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
2023-06-28 11:04:59 +01:00

28 lines
982 B
Text

# Copyright, Linaro Ltd, 2023
# SPDX-License-Identifier: BSD-3-Clause
dnl STREAM_SG_PCM_ADD(stream, stream-dai-id,
dnl format, min-rate, max-rate, min-channels, max-hcannels,
dnl sg-iid-start, cont-iid-start, mod-iid-start, lpass-ver-compat)
define(`STREAM_SG_PCM_ADD',
`undefine(`PCM_DAI_ID') dnl'
`undefine(`PCM_FORMAT') dnl'
`undefine(`PCM_MIN_RATE') dnl'
`undefine(`PCM_MAX_RATE') dnl'
`undefine(`PCM_MIN_CHANNELS') dnl'
`undefine(`PCM_MAX_CHANNELS') dnl'
`undefine(`SG_IID_START') dnl'
`undefine(`CONT_IID_START') dnl'
`undefine(`MOD_IID_START') dnl'
`define(`PCM_DAI_ID', `$2') dnl'
`define(`PCM_FORMAT', `$3') dnl'
`define(`PCM_MIN_RATE', `$4') dnl'
`define(`PCM_MAX_RATE', `$5') dnl'
`define(`PCM_MIN_CHANNELS', `$6') dnl'
`define(`PCM_MAX_CHANNELS', `$7') dnl'
`define(`SG_IID_START', `$8') dnl'
`define(`CONT_IID_START', `$9') dnl'
`define(`MOD_IID_START', `$10') dnl'
`define(`NAME_PREFIX', `stream$2') dnl'
`define(`LPASS_VER_COMPAT', `$11') dnl'
`include($1)') dnl