Manual merge from dev_pasdk_qin_thdintegration, commitId=434f3e8
authorFrank Livingston <frank-livingston@ti.com>
Tue, 11 Oct 2016 18:10:44 +0000 (13:10 -0500)
committerFrank Livingston <frank-livingston@ti.com>
Tue, 11 Oct 2016 18:10:44 +0000 (13:10 -0500)
Moved AudioFrame buffers in DecodeInStruct/DecodeOutStruct to external
memory.

pasdk/test_arm/framework/audioStreamDecodeProc.c
pasdk/test_arm/framework/itopo/params.c

index 8f628d00cc209140d78af5491115ce1a0a0fd649..234d351ad2951fcfea276ff9a1a18f2a729a36d1 100644 (file)
@@ -809,7 +809,8 @@ PAF_ASDT_initPhaseMalloc(
     // Initialize error block
     Error_init(&eb); 
 
-    if (!(gpDecAudioFrame = (PAF_AudioFrame *)Memory_calloc((IHeap_Handle)HEAP_INTERNAL1,
+//    if (!(gpDecAudioFrame = (PAF_AudioFrame *)Memory_calloc((IHeap_Handle)HEAP_INTERNAL1,
+    if (!(gpDecAudioFrame = (PAF_AudioFrame *)Memory_calloc((IHeap_Handle)HEAP_EXTERNAL, //Qin - moved to external memory
         DECODEN * sizeof (PAF_AudioFrame), 4, &eb)))
     {
         TRACE_TERSE1("PAF_ASDT_initPhaseMalloc: AS%d: Memory_calloc failed", as+zMS);
index b7e709f868972cd50a884a9c777a8f4d122932c7..8fa9a3f499d3f299d51543a32dc88056398b37ca 100644 (file)
@@ -429,7 +429,8 @@ const PAF_ASDT_Params asdp_params_PAi =
     {                                                       // heap
         &gPafHeapIdInt1,    //&IRAM                         // pIntern
         &gPafHeapIdExt,     //&SDRAM,                       // pExtern
-        &gPafHeapIdInt1,    //&IRAM,                        // pFrmbuf
+        //&gPafHeapIdInt1,    //&IRAM,                        // pFrmbuf
+        &gPafHeapIdExt,     //&SDRAM,                        // pFrmbuf //Qin - moved to external memory
         &gPafHeapIdInt1,    //&L3RAM,                       // pIntern1
         1,                                                  // clear
     },