Lines Matching full:effect
72 // 0; but one side effect of this is to turn all LOGV's as well. Some messages
105 // we define a minimum time during which a global effect is considered enabled.
441 // dump orphan effect chains
443 write(fd, " Orphan Effect Chains\n", strlen(" Orphan Effect Chains\n"));
660 // check if an effect chain with the same session ID is present on another
686 // move effect chain to this output thread if an effect on same session was waiting
1565 // Check if one effect chain was awaiting for an AudioRecord to be created on this
2244 // If we still have effect chains, it means that a client still holds a handle
2245 // on at least one effect. We must either move the chain to an existing thread with the
2269 ALOGV("closeInput() found thread %d for effect session %d",
2438 sp<EffectModule> effect = ec->mEffects[0];
2439 effect->unPin();
2440 t->removeEffect_l(effect);
2441 if (effect->purgeHandles()) {
2442 t->checkSuspendOnEffectEnabled_l(effect, false, effect->sessionId());
2444 AudioSystem::unregisterEffect(effect->id());
2586 // Effect management
2649 // if uuid is specified, request effect descriptor
2657 // of the required type in effect factory
2659 ALOGW("createEffect() no effect type");
2680 // If matching type found save effect descriptor. If the session is
2681 // 0 and the effect is not auxiliary, continue enumeration in case
2682 // an auxiliary version of this effect type is available
2693 ALOGW("createEffect() effect not found");
2696 // For same effect type, chose auxiliary version over insert version if
2718 // return effect descriptor
2734 // Note: io is never 0 when creating an effect on an input
2758 // first output. The effect chain will be moved to the correct output
2763 ALOGV("createEffect() got io %d for effect %s", io, desc.name);
2774 // Check if one effect chain was awaiting for an effect to be created on this
2785 // create effect on selected output thread
2840 ALOGW("moveEffectChain_l() effect chain for session %d not on source thread %p",
2847 ALOGW("moveEffectChain_l() effect chain failed because"
2853 // remove chain first. This is useful only if reconfiguring effect chain on same output thread,
2854 // so that a new chain is created with correct parameters when first effect is added. This is
2855 // otherwise unnecessary as removeEffect_l() will remove the chain when last effect is
2859 // transfer all effects one by one so that new effect chain is created on new thread with
2860 // correct buffer sizes and audio parameters and effect engines reconfigured accordingly
2863 sp<EffectModule> effect = chain->getEffectFromId_l(0);
2866 while (effect != 0) {
2867 srcThread->removeEffect_l(effect);
2868 removed.add(effect);
2869 status = dstThread->addEffect_l(effect);
2873 // removeEffect_l() has stopped the effect if it was active so it must be restarted
2874 if (effect->state() == EffectModule::ACTIVE ||
2875 effect->state() == EffectModule::STOPPING) {
2876 effect->start();
2878 // if the move request is not received from audio policy manager, the effect must be
2881 dstChain = effect->chain().promote();
2883 ALOGW("moveEffectChain_l() cannot get chain from effect %p", effect.get());
2890 AudioSystem::unregisterEffect(effect->id());
2891 AudioSystem::registerEffect(&effect->desc(),
2895 effect->id());
2896 AudioSystem::setEffectEnabled(effect->id(), effect->isEnabled());
2898 effect = chain->getEffectFromId_l(0);
2911 AudioSystem::setEffectEnabled(effect->id(), effect->isEnabled());
2976 bool AudioFlinger::updateOrphanEffectChains(const sp<AudioFlinger::EffectModule>& effect)
2979 audio_session_t session = effect->sessionId();
2984 if (chain->removeEffect_l(effect) == 0) {
2985 ALOGV("updateOrphanEffectChains removing effect chain at index %zd", index);