mirror of https://github.com/thesofproject/sof.git
topology1: fix errors due to newline in list generator
The recent changes to the string parser in alsa-lib cause the topology builds to break for some topologies. Avoid adding a newline for the bytes data for the MUXDEMUX config by introducing a new macro for creating lists without new lines between items. Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
This commit is contained in:
parent
db041556ce
commit
3e1c160e50
|
@ -41,7 +41,7 @@ define(matrix1, `ROUTE_MATRIX(1,
|
|||
`BITS_TO_BYTE(0, 0, 0 ,0 ,0 ,0 ,0 ,0)')')
|
||||
|
||||
dnl name, num_streams, route_matrix list
|
||||
MUXDEMUX_CONFIG(demux_priv_1, 1, LIST(` ', `matrix1'))
|
||||
MUXDEMUX_CONFIG(demux_priv_1, 1, LIST_NONEWLINE(`', `matrix1'))
|
||||
|
||||
#
|
||||
# Define the pipelines
|
||||
|
|
|
@ -41,7 +41,7 @@ define(matrix1, `ROUTE_MATRIX(1,
|
|||
`BITS_TO_BYTE(0, 0, 0 ,0 ,0 ,0 ,0 ,0)')')
|
||||
|
||||
dnl name, num_streams, route_matrix list
|
||||
MUXDEMUX_CONFIG(demux_priv_1, 1, LIST(` ', `matrix1'))
|
||||
MUXDEMUX_CONFIG(demux_priv_1, 1, LIST_NONEWLINE(`', `matrix1'))
|
||||
|
||||
#
|
||||
# Define the pipelines
|
||||
|
|
|
@ -56,7 +56,7 @@ define(matrix2, `ROUTE_MATRIX(7,
|
|||
`BITS_TO_BYTE(0, 0, 0 ,0 ,0 ,0 ,0 ,1)')')
|
||||
|
||||
dnl name, num_streams, route_matrix list
|
||||
MUXDEMUX_CONFIG(demux_priv_1, 2, LIST(` ', `matrix1,', `matrix2'))
|
||||
MUXDEMUX_CONFIG(demux_priv_1, 2, LIST_NONEWLINE(`', `matrix1,', `matrix2'))
|
||||
|
||||
#
|
||||
# Define the pipelines
|
||||
|
|
|
@ -19,8 +19,12 @@ dnl The first argument specifies the number of tabs to be added for formatting
|
|||
define(`LIST_LOOP', `argn(j,$@)
|
||||
$1ifelse(i,`2', `', `define(`i', decr(i))define(`j', incr(j))$0($@)')')
|
||||
|
||||
define(`LIST_LOOP_NONEWLINE', `argn(j,$@)$1ifelse(i,`2', `', `define(`i', decr(i))define(`j', incr(j))$0($@)')')
|
||||
|
||||
define(`LIST', `pushdef(`i', $#)pushdef(`j', `2')LIST_LOOP($@)popdef(i)popdef(j)')
|
||||
|
||||
define(`LIST_NONEWLINE', `pushdef(`i', $#)pushdef(`j', `2')LIST_LOOP_NONEWLINE($@)popdef(i)popdef(j)')
|
||||
|
||||
dnl Sums a list of variable arguments. Use as last argument in macro.
|
||||
define(`SUM_LOOP', `eval(argn(j,$@)
|
||||
ifelse(i,`1', `', `define(`i', decr(i)) define(`j', incr(j)) + $0($@)'))')
|
||||
|
|
|
@ -74,7 +74,7 @@ dnl There's a separate matrix for all outputs.
|
|||
`BITS_TO_BYTE(0, 0, 0 ,0 ,0 ,0 ,0 ,1)')')'
|
||||
|
||||
dnl name, num_streams, route_matrix list
|
||||
`MUXDEMUX_CONFIG(demux_priv_1, 2, LIST(` ', `matrix1,', `matrix2'))')
|
||||
`MUXDEMUX_CONFIG(demux_priv_1, 2, LIST_NONEWLINE(`', `matrix1,', `matrix2'))')
|
||||
|
||||
ifdef(`NO_AMP',,`
|
||||
ifdef(`SMART_AMP',`
|
||||
|
|
|
@ -49,7 +49,7 @@ define(matrix2, `ROUTE_MATRIX(5,
|
|||
`BITS_TO_BYTE(0, 0, 0 ,0 ,0 ,0 ,0 ,1)')')
|
||||
|
||||
dnl name, num_streams, route_matrix list
|
||||
MUXDEMUX_CONFIG(demux_priv_1, 2, LIST(` ', `matrix1,', `matrix2'))
|
||||
MUXDEMUX_CONFIG(demux_priv_1, 2, LIST_NONEWLINE(`', `matrix1,', `matrix2'))
|
||||
|
||||
#
|
||||
# Define the pipelines
|
||||
|
|
|
@ -49,7 +49,7 @@ define(matrix2, `ROUTE_MATRIX(5,
|
|||
`BITS_TO_BYTE(0, 0, 0 ,0 ,0 ,0 ,0 ,1)')')
|
||||
|
||||
dnl name, num_streams, route_matrix list
|
||||
MUXDEMUX_CONFIG(demux_priv_1, 2, LIST(` ', `matrix1,', `matrix2'))
|
||||
MUXDEMUX_CONFIG(demux_priv_1, 2, LIST_NONEWLINE(`', `matrix1,', `matrix2'))
|
||||
|
||||
#
|
||||
# Define the pipelines
|
||||
|
|
|
@ -63,7 +63,7 @@ define(matrix2, `ROUTE_MATRIX(4,
|
|||
`BITS_TO_BYTE(0, 0, 0 ,0 ,0 ,0 ,0 ,1)')')
|
||||
|
||||
dnl name, num_streams, route_matrix list
|
||||
MUXDEMUX_CONFIG(demux_priv_3, 2, LIST(` ', `matrix1,', `matrix2'))
|
||||
MUXDEMUX_CONFIG(demux_priv_3, 2, LIST_NONEWLINE(`', `matrix1,', `matrix2'))
|
||||
')
|
||||
|
||||
#
|
||||
|
|
|
@ -63,8 +63,8 @@ define(matrix3, `ROUTE_MATRIX(1,
|
|||
|
||||
dnl name, num_streams, route_matrix list
|
||||
ifdef(`2_WAY_SPK',
|
||||
`MUXDEMUX_CONFIG(demux_priv_1, 1, LIST(`` '', `matrix3'))',
|
||||
`MUXDEMUX_CONFIG(demux_priv_1, 2, LIST(`` '', `matrix1,', `matrix2'))')
|
||||
`MUXDEMUX_CONFIG(demux_priv_1, 1, LIST_NONEWLINE(`', `matrix3'))',
|
||||
`MUXDEMUX_CONFIG(demux_priv_1, 2, LIST_NONEWLINE(`', `matrix1,', `matrix2'))')
|
||||
|
||||
#
|
||||
# Define the pipelines
|
||||
|
|
Loading…
Reference in New Issue