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

Commit ad70952b authored by Mikhail Naganov's avatar Mikhail Naganov Committed by Gerrit Code Review
Browse files

Merge "Fix audio glitch when starting/stopping HFP call" into main

parents 43147f43 36077c9b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -7127,7 +7127,8 @@ void AudioPolicyManager::checkOutputForAttributes(const audio_attributes_t &attr
            if (status != OK) {
                continue;
            }
            if (client->getPrimaryMix() != primaryMix || client->hasLostPrimaryMix()) {
            if ((client->getPrimaryMix() && client->getPrimaryMix() != primaryMix)
                    || client->hasLostPrimaryMix()) {
                if (desc->isStrategyActive(psId) && maxLatency < desc->latency()) {
                    maxLatency = desc->latency();
                }