Fix metadata buffer size in ARM/DSP params
authorFrank Livingston <frank-livingston@ti.com>
Sun, 11 Sep 2016 19:09:47 +0000 (14:09 -0500)
committerFrank Livingston <frank-livingston@ti.com>
Sun, 11 Sep 2016 19:09:47 +0000 (14:09 -0500)
processor_audio_sdk_1_00_00_00/pasdk/test_arm/framework/itopo/params.c
processor_audio_sdk_1_00_00_00/pasdk/test_dsp/framework/audioStreamOutProc.c
processor_audio_sdk_1_00_00_00/pasdk/test_dsp/framework/itopo/params.c

index d722c786f1fe90db2053b7d58442cd70de3383e1..b7e709f868972cd50a884a9c777a8f4d122932c7 100644 (file)
@@ -42,6 +42,7 @@ All rights reserved.
 //#include <ti/procsdk_audio/procsdk_audio_typ.h>
 #include <procsdk_audio_typ.h>
 
+#include "paftyp.h"
 #include <stdasp.h>
 #include <pafsio_ialg.h>
 
@@ -337,7 +338,7 @@ static const IALG_MemSpace params_memspace_PAi_Slave[] = {
 // .............................................................................
 const PAF_MetadataBufStatus PAF_ASDT_params_MetadataBufStatus[] =
 {
-    4 * 1024,               // bufSize
+    PAF_MAX_PRIVATE_MD_SZ,  // bufSize
     PAF_MAX_NUM_PRIVATE_MD, // NumBuf
     128,                    // alignment
     &gPafHeapIdExt //&SDRAM // &IRAM,        // pSpace
index 6438e654f71fd3f6039d1bba768f6becc0993326..816b8a88e93c6d26af4ad6fc560705169706e54c 100644 (file)
@@ -1036,7 +1036,6 @@ PAF_ASOT_initFrame0(
     TRACE_TERSE3("  maxFrameLength: %d.  aLen_ext*aSize: %d.  aBuf_ext: 0x%x", maxFrameLength, aLen_ext*aSize, (IArg)aBuf_ext);
 
     TRACE_TERSE1("PAF_ASOT_initFrame0: AS%d: Memory_calloc for metadata buffers", as+z);
-    //if (! (metadataBuf = (XDAS_UInt8 *)MEM_calloc (*(pP->pMetadataBufStatus->pSpace), pP->pMetadataBufStatus->bufSize*pP->pMetadataBufStatus->NumBuf, pP->pMetadataBufStatus->alignment))) {
     if (!(metadataBuf = (XDAS_UInt8 *)Memory_calloc((IHeap_Handle)HEAP_MDBUF, pP->pMetadataBufStatus->bufSize*pP->pMetadataBufStatus->NumBuf, pP->pMetadataBufStatus->alignment, &eb)))
     {
         TRACE_TERSE1("PAF_ASOT_initFrame0: AS%d: Memory_calloc failed", as+z);
index 2bbd9e5d213a01d28196d8cd55ab7dc3821d3bc3..37e7d46d20456df37472caeedbd00fb80cc49438 100644 (file)
@@ -43,6 +43,7 @@ All rights reserved.
 //#include <ti/procsdk_audio/procsdk_audio_typ.h>
 #include <procsdk_audio_typ.h>
 
+#include "paftyp.h"
 #include <stdasp.h>
 #include <pafsio_ialg.h>
 
@@ -717,7 +718,7 @@ const PAF_ASP_outNumBufMap *const outNumBufMap[] =
 // .............................................................................
 const PAF_MetadataBufStatus PAF_AST_params_MetadataBufStatus[] =
 {
-    4 * 1024,               // bufSize
+    PAF_MAX_PRIVATE_MD_SZ,  // bufSize
     PAF_MAX_NUM_PRIVATE_MD, // NumBuf
     128,                    // alignment
     &gPafHeapIdExt //&SDRAM // &IRAM,        // pSpace