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

Commit f22733ea authored by Eric Laurent's avatar Eric Laurent Committed by android-build-merger
Browse files

audioflinger: enable volume listener on direct outputs am: 3e4de776

am: 31b16502

Change-Id: I0fc13815954933454665dd3765f88be7a863e7a7
parents 85b3dfe4 31b16502
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -1169,6 +1169,11 @@ status_t AudioFlinger::PlaybackThread::checkEffectCompatibility_l(
        return BAD_VALUE;
    }

    // always allow effects without processing load or latency
    if ((desc->flags & EFFECT_FLAG_NO_PROCESS_MASK) == EFFECT_FLAG_NO_PROCESS) {
        return NO_ERROR;
    }

    switch (mType) {
    case MIXER: {
        // Reject any effect on mixer multichannel sinks.
@@ -1199,10 +1204,6 @@ status_t AudioFlinger::PlaybackThread::checkEffectCompatibility_l(
                }
            }

            // always allow effects without processing load or latency
            if ((desc->flags & EFFECT_FLAG_NO_PROCESS_MASK) == EFFECT_FLAG_NO_PROCESS) {
                break;
            }
            if (flags & AUDIO_OUTPUT_FLAG_RAW) {
                ALOGW("checkEffectCompatibility_l(): effect %s on playback thread in raw mode",
                      desc->name);