[Sound-open-firmware] [PATCH 1/2] topology: utils: add get format name helper function
Xiuli Pan
xiuli.pan at linux.intel.com
Thu Mar 22 10:55:48 CET 2018
From: Pan Xiuli <xiuli.pan at linux.intel.com>
We may need to get format name from some format short name.
Signed-off-by: Pan Xiuli <xiuli.pan at linux.intel.com>
---
Test with:
Mininow max rt5651 and GP-MRB nocodec and CNL nocodec
SOF 1.1-stable: 480407f4745a2edf9c51e3a14be7533970122f23
SOF-Tool 1.1-stable: 105c88febf1b974b9f03b02712dbc154eff5eb4d
https://github.com/plbossart/sound/tree/topic/sof-v4.14:
95d77adbaadc44b28c8975a3714f70824d1a8529
---
topology/m4/utils.m4 | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/topology/m4/utils.m4 b/topology/m4/utils.m4
index e929244..ba87c8d 100644
--- a/topology/m4/utils.m4
+++ b/topology/m4/utils.m4
@@ -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) {'
--
2.7.4
More information about the Sound-open-firmware
mailing list