diff options
author | Eric Laurent <elaurent@google.com> | 2013-10-29 18:20:38 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2013-10-29 18:20:38 -0700 |
commit | 1fc6cb5be26734938b3999e6bf4ce0e625e7d284 (patch) | |
tree | ceca20e265134ebd5158b56d9341301ffd4242cc /services | |
parent | d21952fe5bc94f7bb6ee729f806c0e641fdb1a0d (diff) | |
parent | ce275b7dd20e3d4781a46126c753e6eb998e6c0f (diff) | |
download | frameworks_av-1fc6cb5be26734938b3999e6bf4ce0e625e7d284.zip frameworks_av-1fc6cb5be26734938b3999e6bf4ce0e625e7d284.tar.gz frameworks_av-1fc6cb5be26734938b3999e6bf4ce0e625e7d284.tar.bz2 |
am ce275b7d: am 1c594b63: Merge "audioflinger: enable effects after registration if needed" into klp-dev
* commit 'ce275b7dd20e3d4781a46126c753e6eb998e6c0f':
audioflinger: enable effects after registration if needed
Diffstat (limited to 'services')
-rw-r--r-- | services/audioflinger/AudioFlinger.cpp | 2 | ||||
-rw-r--r-- | services/audioflinger/Tracks.cpp | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/services/audioflinger/AudioFlinger.cpp b/services/audioflinger/AudioFlinger.cpp index 360db4f..79c41f7 100644 --- a/services/audioflinger/AudioFlinger.cpp +++ b/services/audioflinger/AudioFlinger.cpp @@ -2340,6 +2340,7 @@ status_t AudioFlinger::moveEffectChain_l(int sessionId, strategy, sessionId, effect->id()); + AudioSystem::setEffectEnabled(effect->id(), effect->isEnabled()); } effect = chain->getEffectFromId_l(0); } @@ -2354,6 +2355,7 @@ status_t AudioFlinger::moveEffectChain_l(int sessionId, strategy, sessionId, removed[i]->id()); + AudioSystem::setEffectEnabled(effect->id(), effect->isEnabled()); } } } diff --git a/services/audioflinger/Tracks.cpp b/services/audioflinger/Tracks.cpp index 9152ea3..d5178b1 100644 --- a/services/audioflinger/Tracks.cpp +++ b/services/audioflinger/Tracks.cpp @@ -861,6 +861,7 @@ status_t AudioFlinger::PlaybackThread::Track::attachAuxEffect(int EffectId) dstChain->strategy(), AUDIO_SESSION_OUTPUT_MIX, effect->id()); + AudioSystem::setEffectEnabled(effect->id(), effect->isEnabled()); } status = playbackThread->attachAuxEffect(this, EffectId); } |