diff options
author | Steve Kondik <steve@cyngn.com> | 2016-04-21 23:22:00 -0700 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2016-04-22 04:07:04 -0700 |
commit | c27a16c33c78a36482336a16199b1b8be794cea4 (patch) | |
tree | fbfac44fbb883ab20c72d5f6f290c0712e18d11b /services | |
parent | 5fac306204f7f9b53f45c7df07543fa89ace497b (diff) | |
download | frameworks_av-c27a16c33c78a36482336a16199b1b8be794cea4.zip frameworks_av-c27a16c33c78a36482336a16199b1b8be794cea4.tar.gz frameworks_av-c27a16c33c78a36482336a16199b1b8be794cea4.tar.bz2 |
audiopolicy: Fix notification not sent for session release
Change-Id: Ifba4025532debc50c7931d08a9bcd1593d9b1721
Diffstat (limited to 'services')
-rw-r--r-- | services/audiopolicy/service/AudioPolicyEffects.cpp | 4 | ||||
-rw-r--r-- | services/audiopolicy/service/AudioPolicyInterfaceImpl.cpp | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/services/audiopolicy/service/AudioPolicyEffects.cpp b/services/audiopolicy/service/AudioPolicyEffects.cpp index 6a43bea..fce471f 100644 --- a/services/audiopolicy/service/AudioPolicyEffects.cpp +++ b/services/audiopolicy/service/AudioPolicyEffects.cpp @@ -325,10 +325,6 @@ status_t AudioPolicyEffects::releaseOutputSessionEffects(audio_io_handle_t outpu ALOGV("doReleaseOutputSessionEffects(): output processing released from session: %d", audioSession); } - - mAudioPolicyService->onOutputSessionEffectsUpdate(stream, (audio_session_t)audioSession, - AUDIO_OUTPUT_FLAG_NONE, 0, -1, false); - return status; } diff --git a/services/audiopolicy/service/AudioPolicyInterfaceImpl.cpp b/services/audiopolicy/service/AudioPolicyInterfaceImpl.cpp index 96bc4c7..54b1982 100644 --- a/services/audiopolicy/service/AudioPolicyInterfaceImpl.cpp +++ b/services/audiopolicy/service/AudioPolicyInterfaceImpl.cpp @@ -282,6 +282,8 @@ void AudioPolicyService::doReleaseOutput(audio_io_handle_t output, { ALOGV("doReleaseOutput from tid %d", gettid()); Mutex::Autolock _l(mLock); + onOutputSessionEffectsUpdate(stream, session, + AUDIO_OUTPUT_FLAG_NONE, 0, -1, false); mAudioPolicyManager->releaseOutput(output, stream, session); } |