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

Commit e3292bc2 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Remove confusing A2DP check for fast mixer"

parents c668e1d5 7be8c90a
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -4569,12 +4569,7 @@ AudioFlinger::MixerThread::MixerThread(const sp<AudioFlinger>& audioFlinger, Aud
        break;
    case FastMixer_Static:
    case FastMixer_Dynamic:
        // FastMixer was designed to operate with a HAL that pulls at a regular rate,
        // where the period is less than an experimentally determined threshold that can be
        // scheduled reliably with CFS. However, the BT A2DP HAL is
        // bursty (does not pull at a regular rate) and so cannot operate with FastMixer.
        initFastMixer = mFrameCount < mNormalFrameCount
                && Intersection(outDeviceTypes(), getAudioDeviceOutAllA2dpSet()).empty();
        initFastMixer = mFrameCount < mNormalFrameCount;
        break;
    }
    ALOGW_IF(initFastMixer == false && mFrameCount < mNormalFrameCount,