From 675ae6ba8cab33b6f2065200ddd12d3de99d5b12 Mon Sep 17 00:00:00 2001 From: Taehwan Kim Date: Tue, 29 Jan 2013 23:45:46 +0000 Subject: [PATCH] osal: changed a flag value in case of CONTIG_MEM changed to ION_EXYNOS_MFC_INPUT_MASK from 0. It means that first try to allocate a buffer in area of reserved memory. Change-Id: I90173b0d0423e6481d712f45223c7ae9d3377e64 Signed-off-by: Taehwan Kim --- osal/Exynos_OSAL_SharedMemory.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osal/Exynos_OSAL_SharedMemory.c b/osal/Exynos_OSAL_SharedMemory.c index 42cc3bf..8471916 100644 --- a/osal/Exynos_OSAL_SharedMemory.c +++ b/osal/Exynos_OSAL_SharedMemory.c @@ -176,7 +176,7 @@ OMX_PTR Exynos_OSAL_SharedMemory_Alloc(OMX_HANDLETYPE handle, OMX_U32 size, MEMO break; case CONTIG_MEMORY: mask = ION_HEAP_EXYNOS_CONTIG_MASK; - flag = 0; + flag = ION_EXYNOS_MFC_INPUT_MASK; break; default: pBuffer = NULL; @@ -187,7 +187,7 @@ OMX_PTR Exynos_OSAL_SharedMemory_Alloc(OMX_HANDLETYPE handle, OMX_U32 size, MEMO IONBuffer = ion_alloc((ion_client)pHandle->hIONHandle, size, 0, mask, flag); if ((IONBuffer <= 0) && (memoryType == CONTIG_MEMORY)) { - flag = ION_EXYNOS_MFC_INPUT_MASK; + flag = 0; IONBuffer = ion_alloc((ion_client)pHandle->hIONHandle, size, 0, mask, flag); } -- 2.20.1