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

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

Merge "EffectChain: fix removeEffect_l for global aux effects"

parents 2caed6d5 4d2cb59a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2447,7 +2447,8 @@ size_t AudioFlinger::EffectChain::removeEffect_l(const sp<EffectModule>& effect,

            // make sure the input buffer configuration for the new first effect in the chain
            // is updated if needed (can switch from HAL channel mask to mixer channel mask)
            if (i == 0 && size > 1) {
            if (type != EFFECT_FLAG_TYPE_AUXILIARY // TODO(b/284522658) breaks for aux FX, why?
                    && i == 0 && size > 1) {
                mEffects[0]->configure();
                mEffects[0]->setInBuffer(mInBuffer);
                mEffects[0]->updateAccessMode();      // reconfig if neeeded.