[Sound-open-firmware] [PATCH] pipeline: static: move static buffer sizes out of platform header
Liam Girdwood
liam.r.girdwood at linux.intel.com
Thu Aug 10 17:56:44 CEST 2017
Signed-off-by: Liam Girdwood <liam.r.girdwood at linux.intel.com>
---
src/audio/pipeline_static.c | 8 ++++++++
src/platform/baytrail/include/platform/platform.h | 7 -------
2 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/src/audio/pipeline_static.c b/src/audio/pipeline_static.c
index d52afda..d08bb98 100644
--- a/src/audio/pipeline_static.c
+++ b/src/audio/pipeline_static.c
@@ -45,6 +45,14 @@
#include <reef/audio/component.h>
#include <reef/audio/pipeline.h>
+
+/* 2 * 32 bit*/
+#define PLATFORM_INT_FRAME_SIZE 8
+/* 2 * 16 bit*/
+#define PLATFORM_HOST_FRAME_SIZE 4
+/* 2 * 24 (32) bit*/
+#define PLATFORM_DAI_FRAME_SIZE 8
+
/*
* Static Buffer Convenience Constructors.
*/
diff --git a/src/platform/baytrail/include/platform/platform.h b/src/platform/baytrail/include/platform/platform.h
index 8dac653..222ffd2 100644
--- a/src/platform/baytrail/include/platform/platform.h
+++ b/src/platform/baytrail/include/platform/platform.h
@@ -67,13 +67,6 @@ struct reef;
#define PLATFORM_MAX_CHANNELS 4
#define PLATFORM_MAX_STREAMS 5
-/* TODO: get this from IPC - 2 * 32 bit*/
-#define PLATFORM_INT_FRAME_SIZE 8
-/* TODO: get this from IPC - 2 * 16 bit*/
-#define PLATFORM_HOST_FRAME_SIZE 4
-/* TODO: get this from IPC - 2 * 24 (32) bit*/
-#define PLATFORM_DAI_FRAME_SIZE 8
-
/* Platform Host DMA buffer config - these should align with DMA engine */
#define PLAT_HOST_PERIOD_FRAMES 48 /* must be multiple of DMA burst size */
#define PLAT_HOST_PERIODS 2 /* give enough latency for DMA refill */
--
2.11.0
More information about the Sound-open-firmware
mailing list