audioreach-topology/util/pcm.m4
Srinivas Kandagatla 38d5db7688 audioreach: pcm: add support for multiple formats in pcm macro
Currently pcm can only handle one format, this change adds support to
allow passing multiple formats from the macro which are comma seperated.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
2026-04-29 13:13:23 +00:00

85 lines
2.1 KiB
Text

# Copyright, Linaro Ltd, 2023
# SPDX-License-Identifier: BSD-3-Clause
include(`util/util.m4') dnl
dnl AR_PCM_PLAYBACK(index, formats, rate_min, rate_max, ch_min, ch_max)
define(`AR_PCM_PLAYBACK',
`'
`SectionPCMCapabilities."`MultiMedia'eval($1 +1 )` Playback'" {'
` formats STR(`$2')'
` rate_min STR($3)'
` rate_max STR($4)'
` channels_min STR($5)'
` channels_max STR($6)'
`}'
`'
`SectionPCM."`MultiMedia'eval($1 + 1)` Playback'" {'
`'
` index STR($1)'
`'
` # used for binding to the PCM'
` id STR($1)'
`'
` dai."`MultiMedia'eval($1 + 1)` Playback'" {'
` id STR($1)'
` }'
`'
` pcm."playback" {'
` capabilities "`MultiMedia'eval($1 + 1)` Playback'"'
` }'
`}') dnl
dnl
dnl AR_PCM_CAPTURE(index, formats, rate_min, rate_max, ch_min, ch_max)
define(`AR_PCM_CAPTURE',
`'
`SectionPCMCapabilities."`MultiMedia'eval($1 +1 )` Capture'" {'
`'
` formats STR($2)'
` rate_min STR($3)'
` rate_max STR($4)'
` channels_min STR($5)'
` channels_max STR($6)'
`}'
`'
`SectionPCM."`MultiMedia'eval($1 + 1)` Capture'" {'
`'
` index STR($1)'
`'
` # used for binding to the PCM'
` id STR($1)'
`'
` dai."`MultiMedia'eval($1 + 1)` Capture'" {'
` id STR($1)'
` }'
`'
` pcm."capture" {'
` capabilities "`MultiMedia'eval($1 + 1)` Capture'"'
` }'
`}')
dnl AR_COMPESS_PLAYBACK(index, formats, rate_min, rate_max, ch_min, ch_max)
define(`AR_COMPESS_PLAYBACK',
`'
`SectionPCMCapabilities."`MultiMedia'eval($1 +1 )` Playback'" {'
` formats STR($2)'
` rate_min STR($3)'
` rate_max STR($4)'
` channels_min STR($5)'
` channels_max STR($6)'
`}'
`'
`SectionPCM."`MultiMedia'eval($1 + 1)` Playback'" {'
`'
` index STR($1)'
` compress "true"'
`'
` # used for binding to the PCM'
` id STR($1)'
`'
` dai."`MultiMedia'eval($1 + 1)` Playback'" {'
` id STR($1)'
` }'
`'
` pcm."playback" {'
` capabilities "`MultiMedia'eval($1 + 1)` Playback'"'
` }'
`}') dnl
dnl