Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c27a16c3 authored by Steve Kondik's avatar Steve Kondik
Browse files

audiopolicy: Fix notification not sent for session release

Change-Id: Ifba4025532debc50c7931d08a9bcd1593d9b1721
parent 5fac3062
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -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;
}

+2 −0
Original line number Diff line number Diff line
@@ -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);
}