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 <t_h.kim@samsung.com>
break;
case CONTIG_MEMORY:
mask = ION_HEAP_EXYNOS_CONTIG_MASK;
- flag = 0;
+ flag = ION_EXYNOS_MFC_INPUT_MASK;
break;
default:
pBuffer = NULL;
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);
}