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

Commit 1c1fb278 authored by Eric Laurent's avatar Eric Laurent Committed by android-build-merger
Browse files

audioflinger: keep wakelock during offload drain

am: de0613d0

Change-Id: Id20b661196f44ae093308e988f3aec9505732343
parents be0b0a22 de0613d0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1020,7 +1020,7 @@ protected:
    virtual     bool        waitingAsyncCallback_l();
    virtual     void        invalidateTracks(audio_stream_type_t streamType);

    virtual     bool        keepWakeLock() const { return mKeepWakeLock; }
    virtual     bool        keepWakeLock() const { return (mKeepWakeLock || (mDrainSequence & 1)); }

private:
    size_t      mPausedWriteLength;     // length in bytes of write interrupted by pause