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

Commit 4ad5d522 authored by Daniel Chapin's avatar Daniel Chapin Committed by Android Build Coastguard Worker
Browse files

Revert "Fix audio glitch when starting/stopping HFP call"

This reverts commit 36077c9b.

Reason for revert: b/361493408
(cherry picked from https://android-review.googlesource.com/q/commit:39217a966cff24f5e90e966e340f7071778942dc)
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:f675c0b2161705b16afb8bc3ee9ceb9c9fa27a72)
Merged-In: I61f76b9ab00ec76307dd2d9564ecbc1dbbfe031f
Change-Id: I61f76b9ab00ec76307dd2d9564ecbc1dbbfe031f
parent 3f502da0
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -7402,8 +7402,7 @@ void AudioPolicyManager::checkOutputForAttributes(const audio_attributes_t &attr
            if (status != OK) {
                continue;
            }
            if ((client->getPrimaryMix() && client->getPrimaryMix() != primaryMix)
                    || client->hasLostPrimaryMix()) {
            if (client->getPrimaryMix() != primaryMix || client->hasLostPrimaryMix()) {
                if (desc->isStrategyActive(psId) && maxLatency < desc->latency()) {
                    maxLatency = desc->latency();
                }