mirror of https://github.com/thesofproject/sof.git
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:
parent
aeaddf3af8
commit
79f97a6a0c
|
@ -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) {'
|
||||
|
|
Loading…
Reference in New Issue