summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorjpadmana <jayashree.r.padmanaban@intel.com>2013-11-14 17:20:52 +0530
committerEric Laurent <elaurent@google.com>2014-01-31 00:58:44 +0000
commitf90c7e0bb8d83d8b7f733bdf430d331ea3f221e8 (patch)
treef2e5372c4876aad1901b54cc98d988cbee387549 /include
parentb447379e2ea1c9ca4cd543ac183df70567d40485 (diff)
downloadframeworks_av-f90c7e0bb8d83d8b7f733bdf430d331ea3f221e8.zip
frameworks_av-f90c7e0bb8d83d8b7f733bdf430d331ea3f221e8.tar.gz
frameworks_av-f90c7e0bb8d83d8b7f733bdf430d331ea3f221e8.tar.bz2
fix deadlock issues that arise when there are simultaneous
effect control interface calls to proxy and to non sub-effect wrappers(eg., bundlewrapper) from audioflinger Also, return NO_ERROR when CMD_OFFLOAD succeeds Whenever there are parallel calls to proxy and non sub-effects wrappers, some of the calls are not completed. This is due to deadlock arsing out of Proxy waiting for the subeffect call to return and subeffect waiting for proxy to release lock. The call flow is changed to a cleaner and simple one - Proxy gets the aeli(effect library info) of subeffects during the EffectGetSubEffects() call. Therby, proxy will manage the sub effects by itself rather than going through effects factory. Signed-off-by: jpadmana <jayashree.r.padmanaban@intel.com> Bug: 12424044 Change-Id: I16852222f1d0e94e433a19177729323a4bb1c090
Diffstat (limited to 'include')
-rw-r--r--include/media/EffectsFactoryApi.h24
1 files changed, 0 insertions, 24 deletions
diff --git a/include/media/EffectsFactoryApi.h b/include/media/EffectsFactoryApi.h
index b1143b9..b1ed7b0 100644
--- a/include/media/EffectsFactoryApi.h
+++ b/include/media/EffectsFactoryApi.h
@@ -171,30 +171,6 @@ int EffectGetDescriptor(const effect_uuid_t *pEffectUuid, effect_descriptor_t *p
////////////////////////////////////////////////////////////////////////////////
int EffectIsNullUuid(const effect_uuid_t *pEffectUuid);
-////////////////////////////////////////////////////////////////////////////////
-//
-// Function: EffectGetSubEffects
-//
-// Description: Returns the descriptors of the sub effects of the effect
-// whose uuid is pointed to by first argument.
-//
-// Input:
-// pEffectUuid: pointer to the effect uuid.
-// size: size of the buffer pointed by pDescriptor.
-//
-// Input/Output:
-// pDescriptor: address where to return the sub effect descriptors.
-//
-// Output:
-// returned value: 0 successful operation.
-// -ENODEV factory failed to initialize
-// -EINVAL invalid pEffectUuid or pDescriptor
-// -ENOENT no effect with this uuid found
-// *pDescriptor: updated with the sub effect descriptors.
-//
-////////////////////////////////////////////////////////////////////////////////
-int EffectGetSubEffects(const effect_uuid_t *pEffectUuid, effect_descriptor_t *pDescriptors, size_t size);
-
#if __cplusplus
} // extern "C"
#endif