mirror of https://github.com/thesofproject/sof.git
topology: utils: add helper to generate PCM capability
Add a helper to generate supported formats of the PCM capability, it is up to the pipeline format: for s16_le pipeline, only S16_LE is supported. for s24_le pipeline, both S16_LE and S24_LE are supported. for s32_le pipeline, all S16_LE, S24_LE and S32_LE are supported. For each pipeline, we should use CAPABILITY_FORMAT_NAME(PIPELINE_FORMAT) in the PCM_CAPABILITIES definition. Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
This commit is contained in:
parent
84298db608
commit
e4fa878606
|
@ -57,6 +57,15 @@ define(`COMP_FORMAT_VALUE',
|
|||
$1, `s32le', `0x02',
|
||||
)')
|
||||
|
||||
dnl CAPABILITY_FORMAT_NAME(BUF_FMT)
|
||||
define(`CAPABILITY_FORMAT_NAME',
|
||||
`ifelse(
|
||||
$1, `s16le', `S16_LE',
|
||||
$1, `s24le', ``S24_LE,S16_LE'',
|
||||
$1, `s32le', ``S32_LE,S24_LE,S16_LE'',
|
||||
$1, `float', `FLOAT_LE',
|
||||
)')
|
||||
|
||||
# note: only support number < 256 at the moment
|
||||
dnl DEC2HEX(dec_num)
|
||||
define(`DEC2HEX',
|
||||
|
|
Loading…
Reference in New Issue