Lines Matching refs:chain
1299 sp<EffectChain> chain = mEffectChains[i]; in dumpEffectChains() local
1300 if (chain != 0) { in dumpEffectChains()
1301 chain->dump(fd, args); in dumpEffectChains()
1381 sp<EffectChain> chain = getEffectChain_l(sessionId); in setEffectSuspended_l() local
1382 if (chain != 0) { in setEffectSuspended_l()
1384 chain->setEffectSuspended_l(type, suspend); in setEffectSuspended_l()
1386 chain->setEffectSuspendedAll_l(suspend); in setEffectSuspended_l()
1393 void AudioFlinger::ThreadBase::checkSuspendOnAddEffectChain_l(const sp<EffectChain>& chain) in checkSuspendOnAddEffectChain_l() argument
1395 ssize_t index = mSuspendedSessions.indexOfKey(chain->sessionId()); in checkSuspendOnAddEffectChain_l()
1407 chain->setEffectSuspendedAll_l(true); in checkSuspendOnAddEffectChain_l()
1411 chain->setEffectSuspended_l(&desc->mType, true); in checkSuspendOnAddEffectChain_l()
1501 sp<EffectChain> chain = getEffectChain_l(sessionId); in checkSuspendOnEffectEnabled_l() local
1502 if (chain != 0) { in checkSuspendOnEffectEnabled_l()
1503 chain->checkSuspendOnEffectEnabled(effect, enabled); in checkSuspendOnEffectEnabled_l()
1798 sp<EffectChain> chain = getEffectChain_l(sessionId); in createTrack_l() local
1799 if (chain != 0) { in createTrack_l()
1800 ALOGV("createTrack_l() setting main buffer %p", chain->inBuffer()); in createTrack_l()
1801 track->setMainBuffer(chain->inBuffer()); in createTrack_l()
1802 chain->setStrategy(AudioSystem::getStrategyForStream(track->streamType())); in createTrack_l()
1803 chain->incTrackCnt(); in createTrack_l()
1903 sp<EffectChain> chain = getEffectChain_l(track->sessionId()); in addTrack_l() local
1904 if (chain != 0) { in addTrack_l()
1905 … ALOGV("addTrack_l() starting track on chain %p for session %d", chain.get(), track->sessionId()); in addTrack_l()
1906 chain->incActiveTrackCnt(); in addTrack_l()
1944 sp<EffectChain> chain = getEffectChain_l(track->sessionId()); in removeTrack_l() local
1945 if (chain != 0) { in removeTrack_l()
1946 chain->decTrackCnt(); in removeTrack_l()
2880 sp<EffectChain> chain = getEffectChain_l(AUDIO_SESSION_OUTPUT_MIX); in prepareTracks_l() local
2881 if (chain != 0) { in prepareTracks_l()
2883 chain->setVolume_l(&v, &v); in prepareTracks_l()
2885 chain.clear(); in prepareTracks_l()
3094 chain.clear(); in prepareTracks_l()
3096 chain = getEffectChain_l(track->sessionId()); in prepareTracks_l()
3098 if (chain != 0) { in prepareTracks_l()
3162 if (chain != 0 && chain->setVolume_l(&vl, &vr)) { in prepareTracks_l()
3226 chain = getEffectChain_l(track->sessionId()); in prepareTracks_l()
3227 if (chain != 0) { in prepareTracks_l()
3228 chain->clearInputBuffer(); in prepareTracks_l()
3322 chain = getEffectChain_l(track->sessionId()); in prepareTracks_l()
3323 if (chain != 0) { in prepareTracks_l()
3324 … ALOGV("stopping track on chain %p for session Id: %d", chain.get(), track->sessionId()); in prepareTracks_l()
3325 chain->decActiveTrackCnt(); in prepareTracks_l()
4703 sp<EffectChain> chain = srcThread->getEffectChain_l(AUDIO_SESSION_OUTPUT_MIX); in attachAuxEffect() local
4704 if (chain == 0) { in attachAuxEffect()
4708 sp<EffectModule> effect = chain->getEffectFromId_l(EffectId); in attachAuxEffect()
4720 sp<EffectChain> dstChain = effect->chain().promote(); in attachAuxEffect()
7534 sp<EffectChain> chain = srcThread->getEffectChain_l(sessionId); in moveEffectChain_l() local
7535 if (chain == 0) { in moveEffectChain_l()
7545 srcThread->removeEffectChain_l(chain); in moveEffectChain_l()
7552 sp<EffectModule> effect = chain->getEffectFromId_l(0); in moveEffectChain_l()
7564 dstChain = effect->chain().promote(); in moveEffectChain_l()
7580 effect = chain->getEffectFromId_l(0); in moveEffectChain_l()
7601 sp<EffectChain> chain; in createEffect_l() local
7634 chain = getEffectChain_l(sessionId); in createEffect_l()
7635 if (chain == 0) { in createEffect_l()
7638 chain = new EffectChain(this, sessionId); in createEffect_l()
7639 addEffectChain_l(chain); in createEffect_l()
7640 chain->setStrategy(getStrategyForSession_l(sessionId)); in createEffect_l()
7643 effect = chain->getEffectFromDesc_l(desc); in createEffect_l()
7646 ALOGV("createEffect_l() got effect %p on chain %p", effect.get(), chain.get()); in createEffect_l()
7651 lStatus = AudioSystem::registerEffect(desc, mId, chain->strategy(), sessionId, id); in createEffect_l()
7657 effect = new EffectModule(this, chain, desc, id, sessionId); in createEffect_l()
7662 lStatus = chain->addEffect_l(effect); in createEffect_l()
7683 chain->removeEffect_l(effect); in createEffect_l()
7689 removeEffectChain_l(chain); in createEffect_l()
7708 sp<EffectChain> chain = getEffectChain_l(sessionId); in getEffect_l() local
7709 return chain != 0 ? chain->getEffectFromId_l(effectId) : 0; in getEffect_l()
7718 sp<EffectChain> chain = getEffectChain_l(sessionId); in addEffect_l() local
7721 if (chain == 0) { in addEffect_l()
7724 chain = new EffectChain(this, sessionId); in addEffect_l()
7725 addEffectChain_l(chain); in addEffect_l()
7726 chain->setStrategy(getStrategyForSession_l(sessionId)); in addEffect_l()
7729 ALOGV("addEffect_l() %p chain %p effect %p", this, chain.get(), effect.get()); in addEffect_l()
7731 if (chain->getEffectFromId_l(effect->id()) != 0) { in addEffect_l()
7733 this, effect->desc().name, chain.get()); in addEffect_l()
7737 status_t status = chain->addEffect_l(effect); in addEffect_l()
7740 removeEffectChain_l(chain); in addEffect_l()
7758 sp<EffectChain> chain = effect->chain().promote(); in removeEffect_l() local
7759 if (chain != 0) { in removeEffect_l()
7761 if (chain->removeEffect_l(effect) == 0) { in removeEffect_l()
7762 removeEffectChain_l(chain); in removeEffect_l()
7827 status_t AudioFlinger::PlaybackThread::addEffectChain_l(const sp<EffectChain>& chain) in addEffectChain_l() argument
7829 int session = chain->sessionId(); in addEffectChain_l()
7833 ALOGV("addEffectChain_l() %p on thread %p for session %d", chain.get(), this, session); in addEffectChain_l()
7851 chain->incTrackCnt(); in addEffectChain_l()
7861 chain->incActiveTrackCnt(); in addEffectChain_l()
7866 chain->setInBuffer(buffer, ownsBuffer); in addEffectChain_l()
7867 chain->setOutBuffer(mMixBuffer); in addEffectChain_l()
7883 mEffectChains.insertAt(chain, i); in addEffectChain_l()
7884 checkSuspendOnAddEffectChain_l(chain); in addEffectChain_l()
7889 size_t AudioFlinger::PlaybackThread::removeEffectChain_l(const sp<EffectChain>& chain) in removeEffectChain_l() argument
7891 int session = chain->sessionId(); in removeEffectChain_l()
7893 ALOGV("removeEffectChain_l() %p from thread %p for session %d", chain.get(), this, session); in removeEffectChain_l()
7896 if (chain == mEffectChains[i]) { in removeEffectChain_l()
7904 chain.get(), session); in removeEffectChain_l()
7905 chain->decActiveTrackCnt(); in removeEffectChain_l()
7914 chain->decTrackCnt(); in removeEffectChain_l()
7963 status_t AudioFlinger::RecordThread::addEffectChain_l(const sp<EffectChain>& chain) in addEffectChain_l() argument
7969 ALOGV("addEffectChain_l() %p on thread %p", chain.get(), this); in addEffectChain_l()
7971 chain->setInBuffer(NULL); in addEffectChain_l()
7972 chain->setOutBuffer(NULL); in addEffectChain_l()
7974 checkSuspendOnAddEffectChain_l(chain); in addEffectChain_l()
7976 mEffectChains.add(chain); in addEffectChain_l()
7981 size_t AudioFlinger::RecordThread::removeEffectChain_l(const sp<EffectChain>& chain) in removeEffectChain_l() argument
7983 ALOGV("removeEffectChain_l() %p from thread %p", chain.get(), this); in removeEffectChain_l()
7986 chain.get(), mEffectChains.size(), this); in removeEffectChain_l()
8001 const wp<AudioFlinger::EffectChain>& chain, in EffectModule() argument
8005 : mThread(thread), mChain(chain), mId(id), mSessionId(sessionId), mEffectInterface(NULL), in EffectModule()
8221 sp<EffectChain> chain = mChain.promote(); in process() local
8222 if (chain != 0 && chain->activeTrackCnt() != 0) { in process()