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

Commit b10352f4 authored by Eric Laurent's avatar Eric Laurent
Browse files

remove some restrictions on effect output channels

Do not prevent from attaching effects to a non stereo
output thread, unless the output thread is a mixer thread.

Bug: 18157592.
Change-Id: I6ac3187187a1b8aade7db04ea6dfbc47dacc25c3
parent b1322c78
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2633,7 +2633,8 @@ status_t AudioFlinger::moveEffectChain_l(int sessionId,
    // Check whether the destination thread has a channel count of FCC_2, which is
    // currently required for (most) effects. Prevent moving the effect chain here rather
    // than disabling the addEffect_l() call in dstThread below.
    if (dstThread->mChannelCount != FCC_2) {
    if ((dstThread->type() == ThreadBase::MIXER || dstThread->type() == ThreadBase::DUPLICATING) &&
            dstThread->mChannelCount != FCC_2) {
        ALOGW("moveEffectChain_l() effect chain failed because"
                " destination thread %p channel count(%u) != %u",
                dstThread, dstThread->mChannelCount, FCC_2);