diff options
Diffstat (limited to 'services/audiopolicy')
-rw-r--r-- | services/audiopolicy/service/AudioPolicyInterfaceImpl.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/services/audiopolicy/service/AudioPolicyInterfaceImpl.cpp b/services/audiopolicy/service/AudioPolicyInterfaceImpl.cpp index b23c35e..45b3bb0 100644 --- a/services/audiopolicy/service/AudioPolicyInterfaceImpl.cpp +++ b/services/audiopolicy/service/AudioPolicyInterfaceImpl.cpp @@ -417,7 +417,6 @@ void AudioPolicyService::releaseInput(audio_io_handle_t input, sp<AudioPolicyEffects>audioPolicyEffects; { Mutex::Autolock _l(mLock); - mAudioPolicyManager->releaseInput(input, session); audioPolicyEffects = mAudioPolicyEffects; } if (audioPolicyEffects != 0) { @@ -427,6 +426,10 @@ void AudioPolicyService::releaseInput(audio_io_handle_t input, ALOGW("Failed to release effects on input %d", input); } } + { + Mutex::Autolock _l(mLock); + mAudioPolicyManager->releaseInput(input, session); + } } status_t AudioPolicyService::initStreamVolume(audio_stream_type_t stream, |