topology: utils: add get format name helper function
We may need to get format name from some format short name. Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
This commit is contained in:
parent
149d7c36ea
commit
277b7a011a
|
@ -35,6 +35,15 @@ define(`COMP_SAMPLE_SIZE',
|
|||
$1, `float', `4',
|
||||
`4')')
|
||||
|
||||
dnl COMP_FORMAT_NAME(FMT)
|
||||
define(`COMP_FORMAT_NAME',
|
||||
`ifelse(
|
||||
$1, `s16le', `S16_LE',
|
||||
$1, `s24le', `S24_LE',
|
||||
$1, `s32le', `S32_LE',
|
||||
$1, `float', `FLOAT_LE',
|
||||
)')
|
||||
|
||||
dnl P_GRAPH(name, CONNECTIONS)
|
||||
define(`P_GRAPH',
|
||||
`SectionGraph.STR($1) {'
|
||||
|
|
Loading…
Reference in New Issue