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

Commit ea4d7d9b authored by Phil Burk's avatar Phil Burk Committed by android-build-merger
Browse files

Merge "AudioFlinger: allow small requested capacity for FAST path" into qt-dev

am: 1c534714

Change-Id: I570336aa7d157078cf693112039b69fb9e95b396
parents ab7f90cf 1c534714
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -7454,8 +7454,10 @@ sp<AudioFlinger::RecordThread::RecordTrack> AudioFlinger::RecordThread::createRe
            // we formerly checked for a callback handler (non-0 tid),
            // but that is no longer required for TRANSFER_OBTAIN mode
            //
            // frame count is not specified, or is exactly the pipe depth
            ((frameCount == 0) || (frameCount == mPipeFramesP2)) &&
            // Frame count is not specified (0), or is less than or equal the pipe depth.
            // It is OK to provide a higher capacity than requested.
            // We will force it to mPipeFramesP2 below.
            (frameCount <= mPipeFramesP2) &&
            // PCM data
            audio_is_linear_pcm(format) &&
            // hardware format