summaryrefslogtreecommitdiffstats
path: root/domx
diff options
context:
space:
mode:
authorSarthak Aggarwal <sarthak@ti.com>2011-08-11 10:09:19 +0530
committerIliyan Malchev <malchev@google.com>2011-08-24 18:25:37 -0700
commitc3e9282ed1fa3a4e0d92d0133f7003bd79db1394 (patch)
tree8c13136e96ef30aed22d2a42bf8378e0fdfbdcab /domx
parentd6ad7d6de75cfb31453b5c2b530447ea32ded9ae (diff)
downloadhardware_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.c11
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)