From 9d54236675d227d1eb36a1438acb39ca989946f9 Mon Sep 17 00:00:00 2001 From: Laurentiu Mihalcea Date: Fri, 12 Aug 2022 16:22:10 +0300 Subject: [PATCH] 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 --- tools/topology/topology1/m4/pcm.m4 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tools/topology/topology1/m4/pcm.m4 b/tools/topology/topology1/m4/pcm.m4 index 6c1983292..f345e1977 100644 --- a/tools/topology/topology1/m4/pcm.m4 +++ b/tools/topology/topology1/m4/pcm.m4 @@ -128,7 +128,7 @@ define(`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', `ifelse(`$4', `1', `SectionVendorTuples."$1_tuples_w" {' @@ -155,6 +155,8 @@ define(`PCM_CAPTURE_ADD_COMMON', `' ` capabilities STR($3)' ` }' +`' +` compress STR($5)' `ifelse(`$4', `1', ` data [' ` "$1_data_w"' @@ -165,14 +167,14 @@ define(`PCM_CAPTURE_ADD_COMMON', dnl PCM_CAPTURE_ADD(name, pcm_id, capture) define(`PCM_CAPTURE_ADD', `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')')' ) dnl PCM_CAPTURE_LP_ADD(name, pcm_id, capture) define(`PCM_CAPTURE_LP_ADD', `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')')' )