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:
Pan Xiuli 2018-03-22 17:55:48 +08:00 committed by Liam Girdwood
parent 149d7c36ea
commit 277b7a011a
1 changed files with 9 additions and 0 deletions

View File

@ -35,6 +35,15 @@ define(`COMP_SAMPLE_SIZE',
$1, `float', `4', $1, `float', `4',
`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) dnl P_GRAPH(name, CONNECTIONS)
define(`P_GRAPH', define(`P_GRAPH',
`SectionGraph.STR($1) {' `SectionGraph.STR($1) {'