flag = ION_FLAG_CACHED;
#endif
break;
+ case CONTIG_MEMORY:
+ mask = ION_HEAP_EXYNOS_CONTIG_MASK;
+ flag = 0;
+ break;
default:
pBuffer = NULL;
goto EXIT;
}
IONBuffer = ion_alloc((ion_client)pHandle->hIONHandle, size, 0, mask, flag);
+ if ((IONBuffer <= 0) &&
+ (memoryType == CONTIG_MEMORY)) {
+ flag = ION_EXYNOS_MFC_INPUT_MASK;
+ IONBuffer = ion_alloc((ion_client)pHandle->hIONHandle, size, 0, mask, flag);
+ }
+
if (IONBuffer <= 0) {
Exynos_OSAL_Log(EXYNOS_LOG_ERROR, "ion_alloc Error: %d", IONBuffer);
Exynos_OSAL_Free((OMX_PTR)pElement);