diff options
author | Sarthak Aggarwal <sarthak@ti.com> | 2011-08-11 10:09:19 +0530 |
---|---|---|
committer | Iliyan Malchev <malchev@google.com> | 2011-08-24 18:25:37 -0700 |
commit | c3e9282ed1fa3a4e0d92d0133f7003bd79db1394 (patch) | |
tree | 8c13136e96ef30aed22d2a42bf8378e0fdfbdcab /domx | |
parent | d6ad7d6de75cfb31453b5c2b530447ea32ded9ae (diff) | |
download | hardware_ti_omap4-c3e9282ed1fa3a4e0d92d0133f7003bd79db1394.zip hardware_ti_omap4-c3e9282ed1fa3a4e0d92d0133f7003bd79db1394.tar.gz hardware_ti_omap4-c3e9282ed1fa3a4e0d92d0133f7003bd79db1394.tar.bz2 |
Enabling ION buffers for non-secure video usecases
Change-Id: Ic6d53f51f150de6c8c1324aae7464b984eb6ee52
Signed-Off-by:Sarthak Aggarwal<sarthak@ti.com>
Diffstat (limited to 'domx')
-rw-r--r-- | domx/omx_proxy_common/src/omx_proxy_common.c | 11 |
1 files changed, 11 insertions, 0 deletions
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) |