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

Commit f34b5f6e authored by Ricardo Garcia's avatar Ricardo Garcia Committed by android-build-merger
Browse files

Merge "Override Auxiliary audio effect output as stereo"

am: 568085d0

Change-Id: I4f705ee2b47f30731d4f1ac46213fbcd678633a5
parents 402c93e6 568085d0
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -360,6 +360,8 @@ status_t AudioFlinger::EffectModule::configure()

    if ((mDescriptor.flags & EFFECT_FLAG_TYPE_MASK) == EFFECT_FLAG_TYPE_AUXILIARY) {
        mConfig.inputCfg.channels = AUDIO_CHANNEL_OUT_MONO;
        mConfig.outputCfg.channels = AUDIO_CHANNEL_OUT_STEREO;
        ALOGV("Overriding auxiliary effect input as MONO and output as STEREO");
    } else {
        mConfig.inputCfg.channels = channelMask;
        // TODO: Update this logic when multichannel effects are implemented.