mirror of https://github.com/thesofproject/sof.git
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:
parent
6bea410481
commit
9d54236675
|
@ -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')')'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue