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

Commit ec6a7034 authored by Glenn Kasten's avatar Glenn Kasten
Browse files

Add systrace for normal read()

Change-Id: Icba9c9fa648909604556305da7e2d9548f5b4b0c
parent 560a198f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -6078,8 +6078,10 @@ reacquire_wakelock:
            }
        // otherwise use the HAL / AudioStreamIn directly
        } else {
            ATRACE_BEGIN("read");
            ssize_t bytesRead = mInput->stream->read(mInput->stream,
                    (uint8_t*)mRsmpInBuffer + rear * mFrameSize, mBufferSize);
            ATRACE_END();
            if (bytesRead < 0) {
                framesRead = bytesRead;
            } else {