summaryrefslogtreecommitdiffstats
path: root/domx
diff options
context:
space:
mode:
authorVidhoon Viswanathan <vidhoon@ti.com>2012-08-01 01:27:06 -0700
committerSejal Barot <sejal@ti.com>2012-08-23 17:44:35 +0530
commita85a99838c4e4fd256eac5f7e3d3b733a1f3394d (patch)
tree7c3ec2002f5473840f13ab515d327e1c9426b55e /domx
parent253299c921514582a4d47cb1ca802cbda5eae7eb (diff)
downloadhardware_ti_omap4-a85a99838c4e4fd256eac5f7e3d3b733a1f3394d.zip
hardware_ti_omap4-a85a99838c4e4fd256eac5f7e3d3b733a1f3394d.tar.gz
hardware_ti_omap4-a85a99838c4e4fd256eac5f7e3d3b733a1f3394d.tar.bz2
[OMX] Propogate GetParam IndexUseBufferDescriptor to Ducati
The ducati patches: https://gerrit.ext.ti.com/gerrit/omap/#change,8128 https://gerrit.ext.ti.com/gerrit/omap/#change,8261 implement Get/Setparam for OMX_TI_IndexUseBufferDescriptor at Ducati. The implementation of OMX_TI_IndexUseBufferDescriptor mandates ducati side OMX components to be aware of attributes such as buffer type to proceed with buffer processing appropriately. This patch propogates the GetParameter call that was so far handled internally within DOMX to ducati OMX component utilizing the GetParameter implementation at components. Now DOMX is aware of component defaults to the structure related to this index. Change-Id: Icad3abb5236c927edda5ad668ac7ef89db92dfef Signed-off-by: Vidhoon Viswanathan <vidhoon@ti.com>
Diffstat (limited to 'domx')
-rw-r--r--domx/omx_proxy_common/src/omx_proxy_common.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/domx/omx_proxy_common/src/omx_proxy_common.c b/domx/omx_proxy_common/src/omx_proxy_common.c
index 2988fe6..a976f3d 100644
--- a/domx/omx_proxy_common/src/omx_proxy_common.c
+++ b/domx/omx_proxy_common/src/omx_proxy_common.c
@@ -1545,17 +1545,15 @@ OMX_ERRORTYPE __PROXY_GetParameter(OMX_IN OMX_HANDLETYPE hComponent,
switch(nParamIndex)
{
case OMX_TI_IndexUseBufferDescriptor:
- ptBufDescParam = (OMX_TI_PARAM_USEBUFFERDESCRIPTOR *) pParamStruct;
+ eRPCError = RPC_GetParameter(pCompPrv->hRemoteComp, nParamIndex, pParamStruct,
+ pLocBufNeedMap, &eCompReturn);
+ PROXY_checkRpcError();
+ ptBufDescParam = (OMX_TI_PARAM_USEBUFFERDESCRIPTOR *) pParamStruct;
if(pCompPrv->proxyPortBuffers[ptBufDescParam->nPortIndex].proxyBufferType == BufferDescriptorVirtual2D)
{
ptBufDescParam->bEnabled = OMX_TRUE;
ptBufDescParam->eBufferType = OMX_TI_BufferTypeVirtual2D;
}
- else
- {
- ptBufDescParam->bEnabled = OMX_FALSE;
- ptBufDescParam->eBufferType = OMX_TI_BufferTypeMax;
- }
break;
default:
@@ -1574,8 +1572,8 @@ OMX_ERRORTYPE __PROXY_GetParameter(OMX_IN OMX_HANDLETYPE hComponent,
#endif
eRPCError = RPC_GetParameter(pCompPrv->hRemoteComp, nParamIndex, pParamStruct,
pLocBufNeedMap, &eCompReturn);
-#ifdef USE_ION
PROXY_checkRpcError();
+#ifdef USE_ION
if (pRegistered != NULL) {
eRPCError = RPC_UnRegisterBuffer(pCompPrv->hRemoteComp, pRegistered, NULL, IONPointers);
PROXY_checkRpcError();