summaryrefslogtreecommitdiffstats
path: root/domx
diff options
context:
space:
mode:
authorVidhoon Viswanathan <vidhoon@ti.com>2012-09-16 22:46:01 -0700
committerSejal Barot <sejal@ti.com>2012-10-19 18:04:49 +0530
commita659076147424e7d48628c7fa1c13d6e93a34372 (patch)
treee82969acbe01e9d746e556352435d210d372bdc7 /domx
parent254aa435f3534a46d9a68849b900a968a744501e (diff)
downloadhardware_ti_omap4-a659076147424e7d48628c7fa1c13d6e93a34372.zip
hardware_ti_omap4-a659076147424e7d48628c7fa1c13d6e93a34372.tar.gz
hardware_ti_omap4-a659076147424e7d48628c7fa1c13d6e93a34372.tar.bz2
[PROXY] Remove PROXY_AllocateBufferIonCarveout method
With the introduction of generic MEMUTIL APIs, the old wrapper method PROXY_AllocateBufferIonCarveout used to make ION specific allocations in DOMX PROXY is no longer used. This patch removes the method from code. This patch should be integrated after the integration of following patches: http://review.omapzoom.org/#/c/27669/ http://review.omapzoom.org/#/c/27671/ http://review.omapzoom.org/#/c/27776/ Change-Id: I10e0f251aaf3a15b903cfdf3af38695cda9c4193 Signed-off-by: Vidhoon Viswanathan <vidhoon@ti.com>
Diffstat (limited to 'domx')
-rw-r--r--domx/omx_proxy_common/src/omx_proxy_common.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/domx/omx_proxy_common/src/omx_proxy_common.c b/domx/omx_proxy_common/src/omx_proxy_common.c
index a6caa20..5423316 100644
--- a/domx/omx_proxy_common/src/omx_proxy_common.c
+++ b/domx/omx_proxy_common/src/omx_proxy_common.c
@@ -315,32 +315,6 @@ RPC_OMX_ERRORTYPE RPC_UnRegisterBuffer(OMX_HANDLETYPE hRPCCtx, OMX_PTR handle1,
EXIT:
return eRPCError;
}
-
-static OMX_ERRORTYPE PROXY_AllocateBufferIonCarveout(PROXY_COMPONENT_PRIVATE *pCompPrv,
- size_t len, struct ion_handle **handle)
-{
- int fd;
- int ret;
- struct ion_handle *temp;
- size_t stride;
-
- ret = ion_alloc(pCompPrv->nMemmgrClientDesc, len, 0x1000, 1 << ION_HEAP_TYPE_CARVEOUT, &temp);
-
- if (ret || ((int)temp == -ENOMEM)) {
- ret = ion_alloc_tiler(pCompPrv->nMemmgrClientDesc, len, 1, TILER_PIXEL_FMT_PAGE,
- OMAP_ION_HEAP_TILER_MASK, &temp, &stride);
- }
-
- if (ret || ((int)temp == -ENOMEM)) {
- DOMX_ERROR("FAILED to allocate buffer of size=%d. ret=0x%x",len, ret);
- return OMX_ErrorInsufficientResources;
- }
-
- if (ret)
- return OMX_ErrorInsufficientResources;
- *handle = temp;
- return OMX_ErrorNone;
-}
#endif
/* ===========================================================================*/