topology1: pcm: Introduce compress parameter for pcm_capture_add_common

This change will allow us to prepare for adding a new macro
for the case of compress capture.

Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
This commit is contained in:
Laurentiu Mihalcea 2022-08-12 16:22:10 +03:00 committed by Daniel Baluta
parent 6bea410481
commit 9d54236675
1 changed files with 5 additions and 3 deletions

View File

@ -128,7 +128,7 @@ define(`PCM_PLAYBACK_ADD_COMMON',
`}', `fatal_error(`Invalid parameters ($#) to PCM_PLAYBACK_ADD_COMMON')')' `}', `fatal_error(`Invalid parameters ($#) to PCM_PLAYBACK_ADD_COMMON')')'
) )
dnl PCM_CAPTURE_ADD_COMMON(name, pcm_id, capture, lp) dnl PCM_CAPTURE_ADD_COMMON(name, pcm_id, capture, lp, compress)
define(`PCM_CAPTURE_ADD_COMMON', define(`PCM_CAPTURE_ADD_COMMON',
`ifelse(`$4', `1', `ifelse(`$4', `1',
`SectionVendorTuples."$1_tuples_w" {' `SectionVendorTuples."$1_tuples_w" {'
@ -155,6 +155,8 @@ define(`PCM_CAPTURE_ADD_COMMON',
`' `'
` capabilities STR($3)' ` capabilities STR($3)'
` }' ` }'
`'
` compress STR($5)'
`ifelse(`$4', `1', `ifelse(`$4', `1',
` data [' ` data ['
` "$1_data_w"' ` "$1_data_w"'
@ -165,14 +167,14 @@ define(`PCM_CAPTURE_ADD_COMMON',
dnl PCM_CAPTURE_ADD(name, pcm_id, capture) dnl PCM_CAPTURE_ADD(name, pcm_id, capture)
define(`PCM_CAPTURE_ADD', define(`PCM_CAPTURE_ADD',
`ifelse(`$#', `3', `ifelse(`$#', `3',
PCM_CAPTURE_ADD_COMMON($1, $2, $3, 0), PCM_CAPTURE_ADD_COMMON($1, $2, $3, 0, false),
`fatal_error(`Invalid parameters ($#) to PCM_CAPTURE_ADD')')' `fatal_error(`Invalid parameters ($#) to PCM_CAPTURE_ADD')')'
) )
dnl PCM_CAPTURE_LP_ADD(name, pcm_id, capture) dnl PCM_CAPTURE_LP_ADD(name, pcm_id, capture)
define(`PCM_CAPTURE_LP_ADD', define(`PCM_CAPTURE_LP_ADD',
`ifelse(`$#', `3', `ifelse(`$#', `3',
PCM_CAPTURE_ADD_COMMON($1, $2, $3, 1), PCM_CAPTURE_ADD_COMMON($1, $2, $3, 1, false),
`fatal_error(`Invalid parameters ($#) to PCM_CAPTURE_LP_ADD')')' `fatal_error(`Invalid parameters ($#) to PCM_CAPTURE_LP_ADD')')'
) )