Topology: utils: add macros to get format values

Add macros to get format values from strings.

Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
This commit is contained in:
Keyon Jie 2020-04-11 00:31:11 +08:00 committed by Liam Girdwood
parent aeaddf3af8
commit 79f97a6a0c
1 changed files with 8 additions and 0 deletions

View File

@ -49,6 +49,14 @@ define(`COMP_FORMAT_NAME',
$1, `float', `FLOAT_LE',
)')
dnl COMP_FORMAT_VALUE(FMT)
define(`COMP_FORMAT_VALUE',
`ifelse(
$1, `s16le', `0x00',
$1, `s24le', `0x01',
$1, `s32le', `0x02',
)')
dnl P_GRAPH(NAME, PIPELINE_ID, CONNECTIONS)
define(`P_GRAPH',
`SectionGraph.STR($1 $2) {'