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

Commit eb1b6869 authored by Sharad Sangle's avatar Sharad Sangle Committed by Ricardo Cerqueira
Browse files

audioflinger: Fix pops in LPA while effects are applied

 -Issue: LPA playback while effect are applied, has pops/noise
  as below scenarios
  1) LPA Playback + taking snapshot with camera
  2) LPA Playback + changing media volume from settings app
  3) LPA plaback after non-LPA playback
 -Rootcause:Effects meant for LPA are getting applied in
  normal playback path
 -Fix: In threadloop of mixerthread if current effect
  chain is equal to LPAeffectchain, don't apply effects.

CRs-Fixed: 526799

Change-Id: Ic255ef2db81545abd119633e8fc6a7bae5d2f38c
parent 8ffd5b96
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -2278,7 +2278,13 @@ bool AudioFlinger::PlaybackThread::threadLoop()
        // to be called while waiting for async write callback
        if (mType == OFFLOAD) {
            for (size_t i = 0; i < effectChains.size(); i ++) {
#ifdef QCOM_HARDWARE
                if (effectChains[i] != mAudioFlinger->mLPAEffectChain) {
#endif
                    effectChains[i]->process_l();
#ifdef QCOM_HARDWARE
                }
#endif
            }
        }