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

Commit 40eb3ac8 authored by Eric Laurent's avatar Eric Laurent Committed by Gerrit Code Review
Browse files

Merge "AudioPolicy: fix the invalidation in the spatializer output" into main

parents 61522c5e bd719efa
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -7476,6 +7476,9 @@ void AudioPolicyManager::checkOutputForAttributes(const audio_attributes_t &attr
        for (audio_io_handle_t srcOut : srcOutputs) {
            sp<SwAudioOutputDescriptor> desc = mPreviousOutputs.valueFor(srcOut);
            if (desc == nullptr) continue;
            if (desc == mSpatializerOutput && newDevices == oldDevices) {
                continue;
            }

            if (desc->isStrategyActive(psId) && maxLatency < desc->latency()) {
                maxLatency = desc->latency();