Lines Matching refs:effect

229 int aec_init (adnc_pfx_effect_t *effect)  in aec_init()  argument
235 int aec_create(adnc_pfx_effect_t *effect) in aec_create() argument
238 return aec_init (effect); in aec_create()
241 int aec_reset(adnc_pfx_effect_t *effect) in aec_reset() argument
247 int aec_get_parameter(adnc_pfx_effect_t *effect, in aec_get_parameter() argument
273 int aec_set_parameter (adnc_pfx_effect_t *effect, void *pParam, void *pValue) in aec_set_parameter() argument
294 void aec_enable(adnc_pfx_effect_t *effect) in aec_enable() argument
299 void aec_disable(adnc_pfx_effect_t *effect) in aec_disable() argument
304 int aec_set_device(adnc_pfx_effect_t *effect, uint32_t device) in aec_set_device() argument
339 int ns_init (adnc_pfx_effect_t *effect) in ns_init() argument
346 int ns_create(adnc_pfx_effect_t *effect) in ns_create() argument
348 ALOGV("ns_create %p", effect); in ns_create()
350 return ns_init (effect); in ns_create()
353 int ns_get_parameter(adnc_pfx_effect_t *effect, in ns_get_parameter() argument
362 int ns_set_parameter(adnc_pfx_effect_t *effect, void *pParam, void *pValue) in ns_set_parameter() argument
368 void ns_enable(adnc_pfx_effect_t *effect) in ns_enable() argument
373 void ns_disable(adnc_pfx_effect_t *effect) in ns_disable() argument
393 int agc_init (adnc_pfx_effect_t *effect) in agc_init() argument
400 int agc_create(adnc_pfx_effect_t *effect) in agc_create() argument
402 ALOGV("agc_create %p", effect); in agc_create()
404 return agc_init (effect); in agc_create()
407 int agc_get_parameter(adnc_pfx_effect_t *effect, in agc_get_parameter() argument
416 int agc_set_parameter(adnc_pfx_effect_t *effect, void *pParam, void *pValue) in agc_set_parameter() argument
422 void agc_enable(adnc_pfx_effect_t *effect) in agc_enable() argument
427 void agc_disable(adnc_pfx_effect_t *effect) in agc_disable() argument
462 int AdncPreProFx_SetState(adnc_pfx_effect_t *effect, uint32_t state) in AdncPreProFx_SetState() argument
465 ALOGV("AdncPreProFx_SetState procId %d, new %d old %d", effect->procId, state, effect->state); in AdncPreProFx_SetState()
468 switch(effect->state) { in AdncPreProFx_SetState()
470 effect->ops->disable(effect); in AdncPreProFx_SetState()
471 AdncSession_SetProcEnabled(effect->session, effect->procId, false); in AdncPreProFx_SetState()
477 BAD_STATE_ABORT(effect->state, state); in AdncPreProFx_SetState()
481 switch(effect->state) { in AdncPreProFx_SetState()
483 status = effect->ops->create(effect); in AdncPreProFx_SetState()
492 BAD_STATE_ABORT(effect->state, state); in AdncPreProFx_SetState()
496 switch(effect->state) { in AdncPreProFx_SetState()
502 effect->ops->disable(effect); in AdncPreProFx_SetState()
503 AdncSession_SetProcEnabled(effect->session, effect->procId, false); in AdncPreProFx_SetState()
509 BAD_STATE_ABORT(effect->state, state); in AdncPreProFx_SetState()
513 switch(effect->state) { in AdncPreProFx_SetState()
523 effect->ops->enable(effect); in AdncPreProFx_SetState()
524 AdncSession_SetProcEnabled(effect->session, effect->procId, true); in AdncPreProFx_SetState()
527 BAD_STATE_ABORT(effect->state, state); in AdncPreProFx_SetState()
531 BAD_STATE_ABORT(effect->state, state); in AdncPreProFx_SetState()
534 effect->state = state; in AdncPreProFx_SetState()
539 int AdncPreProFx_Init(adnc_pfx_effect_t *effect, uint32_t procId) in AdncPreProFx_Init() argument
542 effect->itfe = &sEffectInterface; in AdncPreProFx_Init()
543 effect->ops = sPreProcOps[procId]; in AdncPreProFx_Init()
544 effect->procId = procId; in AdncPreProFx_Init()
545 effect->state = PFX_EFFECT_STATE_INIT; in AdncPreProFx_Init()
549 int AdncPreProFx_Create(adnc_pfx_effect_t *effect, in AdncPreProFx_Create() argument
553 ALOGV(" AdncPreProFx_Create(effect=%p)", effect); in AdncPreProFx_Create()
554 effect->session = session; in AdncPreProFx_Create()
555 *interface = (effect_handle_t)&effect->itfe; in AdncPreProFx_Create()
556 return AdncPreProFx_SetState(effect, PFX_EFFECT_STATE_CREATED); in AdncPreProFx_Create()
559 int AdncPreProFx_Release(adnc_pfx_effect_t *effect) in AdncPreProFx_Release() argument
561 return AdncPreProFx_SetState(effect, PFX_EFFECT_STATE_INIT); in AdncPreProFx_Release()
744 adnc_pfx_effect_t * effect = (adnc_pfx_effect_t *) self; in AdncVoiceProcessingFx_Command() local
748 if (effect == NULL){ in AdncVoiceProcessingFx_Command()
759 if (effect->ops->init) { in AdncVoiceProcessingFx_Command()
760 effect->ops->init(effect); in AdncVoiceProcessingFx_Command()
775 … *(int *)pReplyData = AdncSession_SetConfig(effect->session, (effect_config_t *)pCmdData); in AdncVoiceProcessingFx_Command()
780 if (effect->state != PFX_EFFECT_STATE_ACTIVE) { in AdncVoiceProcessingFx_Command()
781 *(int *)pReplyData = AdncPreProFx_SetState(effect, PFX_EFFECT_STATE_CONFIG); in AdncVoiceProcessingFx_Command()
793 AdncSession_GetConfig(effect->session, (effect_config_t *)pReplyData); in AdncVoiceProcessingFx_Command()
805 *(int *)pReplyData = AdncSession_SetReverseConfig(effect->session, in AdncVoiceProcessingFx_Command()
819 AdncSession_GetReverseConfig(effect->session, (effect_config_t *)pCmdData); in AdncVoiceProcessingFx_Command()
823 if (effect->ops->reset) { in AdncVoiceProcessingFx_Command()
824 effect->ops->reset(effect); in AdncVoiceProcessingFx_Command()
845 if (effect->ops->get_parameter) { in AdncVoiceProcessingFx_Command()
846 p->status = effect->ops->get_parameter(effect, p->data, in AdncVoiceProcessingFx_Command()
869 if (effect->ops->set_parameter) { in AdncVoiceProcessingFx_Command()
870 *(int *)pReplyData = effect->ops->set_parameter(effect, in AdncVoiceProcessingFx_Command()
881 *(int *)pReplyData = AdncPreProFx_SetState(effect, PFX_EFFECT_STATE_ACTIVE); in AdncVoiceProcessingFx_Command()
889 *(int *)pReplyData = AdncPreProFx_SetState(effect, PFX_EFFECT_STATE_CONFIG); in AdncVoiceProcessingFx_Command()
900 if (effect->ops->set_device) { in AdncVoiceProcessingFx_Command()
901 effect->ops->set_device(effect, *(uint32_t *)pCmdData); in AdncVoiceProcessingFx_Command()
916 return AdncSession_SetSource(effect->session, (audio_source_t) *(uint32_t *)pCmdData); in AdncVoiceProcessingFx_Command()
929 adnc_pfx_effect_t * effect = (adnc_pfx_effect_t *) self; in AdncVoiceProcessingFx_GetDescriptor() local
931 if (effect == NULL || pDescriptor == NULL) { in AdncVoiceProcessingFx_GetDescriptor()
935 memcpy(pDescriptor, adnc_pfx_descriptors[effect->procId], sizeof(effect_descriptor_t)); in AdncVoiceProcessingFx_GetDescriptor()