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

Commit 827a751f authored by Eric Laurent's avatar Eric Laurent Committed by Automerger Merge Worker
Browse files

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

Merge "AudioPolicy: fix the invalidation in the spatializer output" into main am: 40eb3ac8 am: 26b20933

Original change: https://android-review.googlesource.com/c/platform/frameworks/av/+/3444139



Change-Id: Ia8d13eca36356256e19eeb68a46b9e6691d93e59
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 2a0f6d33 26b20933
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -7585,6 +7585,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();