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

Commit 1e61d6c3 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "audio policy: fix mutex in stopOutput"

parents b63e5c63 70ec5e89
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -254,15 +254,6 @@ status_t AudioPolicyService::startOutput(audio_port_handle_t portId)

status_t AudioPolicyService::stopOutput(audio_port_handle_t portId)
{
    {
        Mutex::Autolock _l(mLock);

        const ssize_t index = mAudioPlaybackClients.indexOfKey(portId);
        if (index < 0) {
            ALOGE("%s AudioTrack client not found for portId %d", __FUNCTION__, portId);
            return INVALID_OPERATION;
        }
    }
    if (mAudioPolicyManager == NULL) {
        return NO_INIT;
    }