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

Commit 85109f95 authored by Eric Laurent's avatar Eric Laurent Committed by Automerger Merge Worker
Browse files

Merge "audio policy: fix beacon mute delay" into rvc-qpr-dev am: b197286f

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

Change-Id: I899bd7396e7e54aef461ef75f5d78c65c7b40b85
parents ec0f0ec2 b197286f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5669,7 +5669,7 @@ uint32_t AudioPolicyManager::setBeaconMute(bool mute) {
            sp<SwAudioOutputDescriptor> desc = mOutputs.valueAt(i);
            setVolumeSourceMute(ttsVolumeSource, mute/*on*/, desc, 0 /*delay*/, DeviceTypeSet());
            const uint32_t latency = desc->latency() * 2;
            if (latency > maxLatency) {
            if (desc->isActive(latency * 2) && latency > maxLatency) {
                maxLatency = latency;
            }
        }