Switch camera allocations to the system heap.
authorRebecca Schultz Zavin <rebecca@android.com>
Fri, 22 Mar 2013 20:49:08 +0000 (13:49 -0700)
committerRebecca Schultz Zavin <rebecca@android.com>
Mon, 1 Apr 2013 22:01:41 +0000 (15:01 -0700)
The exynos heap is sometimes failing.

Bug:8049715
Change-Id: Id1a25ea1ce44f26693c5ee9a72d6c5a5126b9b69
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
libcamera2/ExynosCameraHWInterface2.cpp

index 9b8406eea4eed8ef43ae3ed9e08a4ad3550180a7..8f4f5cd0451c773404f5a64ad006a7ccd5643a1a 100644 (file)
@@ -6062,7 +6062,7 @@ int ExynosCameraHWInterface2::allocCameraMemory(ion_client ionClient, ExynosBuff
         else
             flag = 0;
         buf->fd.extFd[i] = ion_alloc(ionClient, \
-                                      buf->size.extS[i], 0, ION_HEAP_EXYNOS_MASK, flag);
+                                      buf->size.extS[i], 0, ION_HEAP_SYSTEM_MASK, flag);
         if ((buf->fd.extFd[i] == -1) ||(buf->fd.extFd[i] == 0)) {
             ALOGE("[%s]ion_alloc(%d) failed\n", __FUNCTION__, buf->size.extS[i]);
             buf->fd.extFd[i] = -1;