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

Commit e101e021 authored by Subhash Chandra Bose Naripeddy's avatar Subhash Chandra Bose Naripeddy Committed by Steve Kondik
Browse files

audioflinger: Do not apply effect on multichannel content

-Do not apply effect on multichannel content.
-Effects are applied only for mono or stereo.
CRs-Fixed: 484078

Change-Id: I623d40f926d5dd80e74f9aa2f98448158518047e
parent 7f2a1dbd
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -348,6 +348,10 @@ status_t AudioFlinger::EffectModule::configure()
    // TODO: handle configuration of effects replacing track process
    channelMask = thread->channelMask();
#ifdef QCOM_HARDWARE
    if(popcount(channelMask) > 2) {
        ALOGE("Error: Trying to apply effect on  %d channel content",popcount(channelMask));
        return INVALID_OPERATION;
    }
    mIsForLPA = isForLPA;
    if(isForLPA) {
        if (channelCount == 1) {