pipeline: static: move static buffer sizes out of platform header

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
This commit is contained in:
Liam Girdwood 2017-08-10 15:58:06 +01:00
parent d164e00a54
commit fb1d0047e2
2 changed files with 8 additions and 7 deletions

View File

@ -45,6 +45,14 @@
#include <reef/audio/component.h> #include <reef/audio/component.h>
#include <reef/audio/pipeline.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. * Static Buffer Convenience Constructors.
*/ */

View File

@ -67,13 +67,6 @@ struct reef;
#define PLATFORM_MAX_CHANNELS 4 #define PLATFORM_MAX_CHANNELS 4
#define PLATFORM_MAX_STREAMS 5 #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 */ /* 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_PERIOD_FRAMES 48 /* must be multiple of DMA burst size */
#define PLAT_HOST_PERIODS 2 /* give enough latency for DMA refill */ #define PLAT_HOST_PERIODS 2 /* give enough latency for DMA refill */