From c3e9282ed1fa3a4e0d92d0133f7003bd79db1394 Mon Sep 17 00:00:00 2001 From: Sarthak Aggarwal Date: Thu, 11 Aug 2011 10:09:19 +0530 Subject: Enabling ION buffers for non-secure video usecases Change-Id: Ic6d53f51f150de6c8c1324aae7464b984eb6ee52 Signed-Off-by:Sarthak Aggarwal --- domx/omx_proxy_common/src/omx_proxy_common.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'domx') diff --git a/domx/omx_proxy_common/src/omx_proxy_common.c b/domx/omx_proxy_common/src/omx_proxy_common.c index 9230bf3..ed37caa 100644 --- a/domx/omx_proxy_common/src/omx_proxy_common.c +++ b/domx/omx_proxy_common/src/omx_proxy_common.c @@ -1860,6 +1860,17 @@ OMX_ERRORTYPE OMX_ProxyCommonInit(OMX_HANDLETYPE hComponent) pCompPrv->hRemoteComp = hRemoteComp; +#ifdef USE_ION + pCompPrv->bUseIon = OMX_TRUE; + pCompPrv->bMapIonBuffers = OMX_TRUE; + + pCompPrv->ion_fd = ion_open(); + if(pCompPrv->ion_fd < 0) + { + DOMX_ERROR("ion_open failed!!!"); + return OMX_ErrorInsufficientResources; + } +#endif EXIT: if (eError != OMX_ErrorNone) -- cgit v1.1