summaryrefslogtreecommitdiff
path: root/libcamera2
diff options
context:
space:
mode:
authorRebecca Schultz Zavin <rebecca@android.com>2013-03-22 13:49:08 -0700
committerRebecca Schultz Zavin <rebecca@android.com>2013-04-01 15:01:41 -0700
commit601acb664031226cf9883908c793d364c2e07e63 (patch)
treefbc46a086c68a7cd497daba3763148e032077f71 /libcamera2
parent483728e7cd506afa89d8ace7ffe43f841c73725b (diff)
downloadexynos5-601acb664031226cf9883908c793d364c2e07e63.tar.gz
Switch camera allocations to the system heap.
The exynos heap is sometimes failing. Bug:8049715 Change-Id: Id1a25ea1ce44f26693c5ee9a72d6c5a5126b9b69 Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
Diffstat (limited to 'libcamera2')
-rw-r--r--libcamera2/ExynosCameraHWInterface2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcamera2/ExynosCameraHWInterface2.cpp b/libcamera2/ExynosCameraHWInterface2.cpp
index 9b8406e..8f4f5cd 100644
--- a/libcamera2/ExynosCameraHWInterface2.cpp
+++ b/libcamera2/ExynosCameraHWInterface2.cpp
@@ -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;