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

Commit b16b924e authored by Eric Laurent's avatar Eric Laurent Committed by Android (Google) Code Review
Browse files

Merge "audio policy: fix enforced audible playback"

parents 2091ee0a f23a771c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5139,7 +5139,7 @@ DeviceVector AudioPolicyManager::getNewOutputDevices(const sp<SwAudioOutputDescr

        if ((hasVoiceStream(streams) &&
             (isInCall() || mOutputs.isStrategyActiveOnSameModule(productStrategy, outputDesc))) ||
             (hasStream(streams, AUDIO_STREAM_ALARM) &&
             ((hasStream(streams, AUDIO_STREAM_ALARM) || hasStream(streams, AUDIO_STREAM_ENFORCED_AUDIBLE)) &&
                mOutputs.isStrategyActiveOnSameModule(productStrategy, outputDesc)) ||
                outputDesc->isStrategyActive(productStrategy)) {
            // Retrieval of devices for voice DL is done on primary output profile, cannot