]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/performance-audio-sr.git/blobdiff - pasdk/common/paf_heapMgr.c
PASDK258: Updated PAF submodule for SRC fix.
[processor-sdk/performance-audio-sr.git] / pasdk / common / paf_heapMgr.c
index 7532cb54a7961ab78a406cb687a41d9e0e7e63a7..3a45dc73ed3a67683f3ce27e0c5418cc31ac2f9a 100644 (file)
@@ -38,11 +38,12 @@ All rights reserved.
 
 #include "paf_heapMgr.h"
 
-Int gPafHeapIdInt       = PAF_HEAP_ID_INT;
-Int gPafHeapIdInt1      = PAF_HEAP_ID_INT1;
-Int gPafHeapIdExt       = PAF_HEAP_ID_EXT;
-Int gPafHeapIdInt1Shm   = PAF_HEAP_ID_INT1_SHM;
-Int gPafHeapIdExtShm    = PAF_HEAP_ID_EXT_SHM;
+Int gPafHeapIdInt             = PAF_HEAP_ID_INT;
+Int gPafHeapIdInt1            = PAF_HEAP_ID_INT1;
+Int gPafHeapIdExt             = PAF_HEAP_ID_EXT;
+Int gPafHeapIdInt1Shm         = PAF_HEAP_ID_INT1_SHM;
+Int gPafHeapIdExtShm          = PAF_HEAP_ID_EXT_SHM;
+Int gPafHeapIdExtNonCachedShm = PAF_HEAP_ID_EXT_NON_CACHED_SHM;
 
 // heap handle array
 //static IHeap_Handle gHeapIdToHandle[PAF_NUM_HEAPS] =
@@ -52,6 +53,7 @@ IHeap_Handle gHeapIdToHandle[PAF_NUM_HEAPS] =
     NULL,
     NULL,
     NULL,
+    NULL,
     NULL
 };
 
@@ -61,14 +63,16 @@ Void pafHeapMgr_init(
     IHeap_Handle hIntHeap1,
     IHeap_Handle hExtHeap,
     IHeap_Handle hIntHeap1Shm,
-    IHeap_Handle hExtHeapShm
+    IHeap_Handle hExtHeapShm,
+    IHeap_Handle hExtHeapNonCachedShm
 )
 {
-    gHeapIdToHandle[PAF_HEAP_ID_INT]        = hIntHeap;
-    gHeapIdToHandle[PAF_HEAP_ID_INT1]       = hIntHeap1;
-    gHeapIdToHandle[PAF_HEAP_ID_EXT]        = hExtHeap;
-    gHeapIdToHandle[PAF_HEAP_ID_INT1_SHM]   = hIntHeap1Shm;
-    gHeapIdToHandle[PAF_HEAP_ID_EXT_SHM]    = hExtHeapShm;
+    gHeapIdToHandle[PAF_HEAP_ID_INT]                = hIntHeap;
+    gHeapIdToHandle[PAF_HEAP_ID_INT1]               = hIntHeap1;
+    gHeapIdToHandle[PAF_HEAP_ID_EXT]                = hExtHeap;
+    gHeapIdToHandle[PAF_HEAP_ID_INT1_SHM]           = hIntHeap1Shm;
+    gHeapIdToHandle[PAF_HEAP_ID_EXT_SHM]            = hExtHeapShm;
+    gHeapIdToHandle[PAF_HEAP_ID_EXT_NON_CACHED_SHM] = hExtHeapNonCachedShm;
 }
 
 /* Write heap handle to PAF heap manager for provided index */