diff options
author | Suman Anna <s-anna@ti.com> | 2011-08-30 21:42:39 -0700 |
---|---|---|
committer | Iliyan Malchev <malchev@google.com> | 2011-08-31 20:02:33 -0700 |
commit | dd67ecfa02b48f73c371802314403ea31a0689af (patch) | |
tree | 4c3269ce94aa00afb09aac69db2931ac4f05eefc /domx | |
parent | e45763a2a361324f1771a6991525e631365ca954 (diff) | |
download | omap4xxx-omapzoom-dd67ecfa02b48f73c371802314403ea31a0689af.tar.gz |
DOMX: Align ion 1d buffer allocations to 4K
Set the alignment parameter for ion allocations to 4K. The
allocation size is already configured to be a multiple of
4K. This ensures that all the DOMX buffers can be mapped
into the user-space, and ensure that allocations are not
returned on a 4K boundary due to extraneous ion client
allocations from the same ion heap.
Change-Id: Ief40a6f30f48fccb315e073d28a2591d027e8243
Signed-off-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Sarthak Aggarwal <sarthak@ti.com>
Diffstat (limited to 'domx')
-rw-r--r-- | domx/domx/omx_proxy_common/src/omx_proxy_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/domx/domx/omx_proxy_common/src/omx_proxy_common.c b/domx/domx/omx_proxy_common/src/omx_proxy_common.c index 28f92ffb..2002cebc 100644 --- a/domx/domx/omx_proxy_common/src/omx_proxy_common.c +++ b/domx/domx/omx_proxy_common/src/omx_proxy_common.c @@ -200,7 +200,7 @@ static OMX_ERRORTYPE PROXY_AllocateBufferIonCarveout(PROXY_COMPONENT_PRIVATE *pC int ret; struct ion_handle *temp; - ret = ion_alloc(pCompPrv->ion_fd, len, 0, 1 << ION_HEAP_TYPE_CARVEOUT, &temp); + ret = ion_alloc(pCompPrv->ion_fd, len, 0x1000, 1 << ION_HEAP_TYPE_CARVEOUT, &temp); DOMX_DEBUG("ION being USED for allocation!!!!! handle = %x, ret =%x",temp,ret); if (ret) return OMX_ErrorInsufficientResources; |