• Home
  • Raw
  • Download

Lines Matching refs:effect

171 static int effect_set_state(struct effect_s *effect, uint32_t state)  in effect_set_state()  argument
174 ALOGV("effect_set_state() id %d, new %d old %d", effect->id, state, effect->state); in effect_set_state()
177 switch(effect->state) { in effect_set_state()
179 session_set_fx_enabled(effect->session, effect->id, false); in effect_set_state()
185 BAD_STATE_ABORT(effect->state, state); in effect_set_state()
189 switch(effect->state) { in effect_set_state()
199 BAD_STATE_ABORT(effect->state, state); in effect_set_state()
203 switch(effect->state) { in effect_set_state()
209 session_set_fx_enabled(effect->session, effect->id, false); in effect_set_state()
215 BAD_STATE_ABORT(effect->state, state); in effect_set_state()
219 switch(effect->state) { in effect_set_state()
229 session_set_fx_enabled(effect->session, effect->id, true); in effect_set_state()
232 BAD_STATE_ABORT(effect->state, state); in effect_set_state()
236 BAD_STATE_ABORT(effect->state, state); in effect_set_state()
240 effect->state = state; in effect_set_state()
245 static int effect_init(struct effect_s *effect, uint32_t id) in effect_init() argument
247 effect->itfe = &effect_interface; in effect_init()
248 effect->id = id; in effect_init()
249 effect->state = EFFECT_STATE_INIT; in effect_init()
253 static int effect_create(struct effect_s *effect, in effect_create() argument
257 effect->session = session; in effect_create()
258 *interface = (effect_handle_t)&effect->itfe; in effect_create()
259 return effect_set_state(effect, EFFECT_STATE_CREATED); in effect_create()
262 static int effect_release(struct effect_s *effect) in effect_release() argument
264 return effect_set_state(effect, EFFECT_STATE_INIT); in effect_release()
495 struct effect_s *effect = (struct effect_s *)self; in fx_process() local
498 if (effect == NULL) { in fx_process()
509 session = (struct session_s *)effect->session; in fx_process()
511 session->processed_msk |= (1<<effect->id); in fx_process()
514 effect->session->processed_msk = 0; in fx_process()
527 struct effect_s *effect = (struct effect_s *)self; in fx_command() local
529 if (effect == NULL) in fx_command()
550 *(int *)pReplyData = session_set_config(effect->session, (effect_config_t *)pCmdData); in fx_command()
554 if (effect->state != EFFECT_STATE_ACTIVE) in fx_command()
555 *(int *)pReplyData = effect_set_state(effect, EFFECT_STATE_CONFIG); in fx_command()
566 session_get_config(effect->session, (effect_config_t *)pReplyData); in fx_command()
612 *(int *)pReplyData = effect_set_state(effect, EFFECT_STATE_ACTIVE); in fx_command()
620 *(int *)pReplyData = effect_set_state(effect, EFFECT_STATE_CONFIG); in fx_command()
656 struct effect_s *effect = (struct effect_s *)self; in fx_get_descriptor() local
658 if (effect == NULL || pDescriptor == NULL) in fx_get_descriptor()
661 *pDescriptor = *descriptors[effect->id]; in fx_get_descriptor()