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

Commit 13f96529 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Select correct device for ENFORCE_AUDIBLE" am: 41c7badd

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

Change-Id: If3abe363dc2f8c279855ccf7220f9d524833c57e
parents 71ffb2ee 41c7badd
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -5857,7 +5857,8 @@ DeviceVector AudioPolicyManager::getNewOutputDevices(const sp<SwAudioOutputDescr
            return hasVoiceStream(streams) && (outputDesc == mPrimaryOutput ||
                outputDesc->isActive(toVolumeSource(AUDIO_STREAM_VOICE_CALL))) &&
                (isInCall() ||
                 mOutputs.isStrategyActiveOnSameModule(productStrategy, outputDesc));
                 mOutputs.isStrategyActiveOnSameModule(productStrategy, outputDesc)) &&
                !isStreamActive(AUDIO_STREAM_ENFORCED_AUDIBLE, 0);
        };

        // With low-latency playing on speaker, music on WFD, when the first low-latency