Lines Matching refs:id
61 uint32_t id; // type of pre processor (enum effect_id) member
72 int id; // audio session ID member
141 static const effect_uuid_t * id_to_uuid(int id) in id_to_uuid() argument
143 if (id >= NUM_ID) in id_to_uuid()
146 return uuid_to_id_table[id]; in id_to_uuid()
163 static void session_set_fx_enabled(struct session_s *session, uint32_t id, bool enabled);
171 ALOGV("effect_set_state() id %d, new %d old %d", effect->id, state, effect->state); in effect_set_state()
176 session_set_fx_enabled(effect->session, effect->id, false); in effect_set_state()
206 session_set_fx_enabled(effect->session, effect->id, false); in effect_set_state()
226 session_set_fx_enabled(effect->session, effect->id, true); in effect_set_state()
242 static int effect_init(struct effect_s *effect, uint32_t id) in effect_init() argument
245 effect->id = id; in effect_init()
275 session->id = 0; in session_init()
286 int32_t id, in session_create_effect() argument
292 id == AEC_ID ? "AEC" : id == NS_ID ? "NS" : "?", session->created_msk); in session_create_effect()
304 status = effect_create(&session->effects[id], session, interface); in session_create_effect()
309 session->created_msk |= (1<<id); in session_create_effect()
319 ALOGW_IF(effect_release(fx) != 0, " session_release_effect() failed for id %d", fx->id); in session_release_effect()
321 session->created_msk &= ~(1<<fx->id); in session_release_effect()
370 static void session_set_fx_enabled(struct session_s *session, uint32_t id, bool enabled) in session_set_fx_enabled() argument
376 session->enabled_msk |= (1 << id); in session_set_fx_enabled()
378 session->enabled_msk &= ~(1 << id); in session_set_fx_enabled()
384 id, enabled, session->enabled_msk); in session_set_fx_enabled()
392 static struct session_s *get_session(int32_t id, int32_t sessionId, int32_t ioId) in get_session() argument
402 if (session->created_msk & (1 << id)) { in get_session()
403 ALOGV("get_session() effect %d already created", id); in get_session()
413 session->id = sessionId; in get_session()
498 session->processed_msk |= (1<<effect->id); in fx_process()
648 *pDescriptor = *descriptors[effect->id]; in fx_get_descriptor()
676 uint32_t id; in lib_create() local
687 id = uuid_to_id(&desc->type); in lib_create()
689 session = get_session(id, sessionId, ioId); in lib_create()
696 status = session_create_effect(session, id, pInterface); in lib_create()