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

Commit f5fad647 authored by Andy Hung's avatar Andy Hung Committed by Automerger Merge Worker
Browse files

Merge "Disable fast capture for non PCM" into main am: cc4eafbe am: 8eae89da am: ae5dc45f

parents e05e1dd1 ae5dc45f
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -7970,10 +7970,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:
    }