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

Commit cc4eafbe authored by Andy Hung's avatar Andy Hung Committed by Gerrit Code Review
Browse files

Merge "Disable fast capture for non PCM" into main

parents 5a8e606a 8e5d9e46
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -7979,10 +7979,11 @@ RecordThread::RecordThread(const sp<IAfThreadCallback>& afThreadCallback,
        break;
    case FastCapture_Static:
        initFastCapture = !mIsMsdDevice // Disable fast capture for MSD BUS devices.
                && audio_is_linear_pcm(mFormat)
                && (mFrameCount * 1000) / mSampleRate < kMinNormalCaptureBufferSizeMs;
        ALOGV("%p kUseFastCapture = Static, (%lld * 1000) / %u vs %u, initFastCapture = %d "
                "mIsMsdDevice = %d", this, (long long)mFrameCount, mSampleRate,
                kMinNormalCaptureBufferSizeMs, initFastCapture, mIsMsdDevice);
        ALOGV("%p kUseFastCapture = Static, format = 0x%x, (%lld * 1000) / %u vs %u, "
                "initFastCapture = %d, mIsMsdDevice = %d", this, mFormat, (long long)mFrameCount,
                mSampleRate, kMinNormalCaptureBufferSizeMs, initFastCapture, mIsMsdDevice);
        break;
    // case FastCapture_Dynamic:
    }