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

Commit 8b0e6fa0 authored by Sapir Caduri's avatar Sapir Caduri Committed by Android (Google) Code Review
Browse files

Merge "audio policy fix: allow cocurrent capture for VOICE_DOWNLINK, VOICE_CALL, VOICE_UPLINK."

parents 43af2f97 9a183af2
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -383,6 +383,8 @@ void AudioPolicyService::updateUidStates_l()
//    OR The client is an accessibility service
//        AND is on TOP OR latest started
//        AND the source is VOICE_RECOGNITION or HOTWORD
//    OR the source is one of: AUDIO_SOURCE_VOICE_DOWNLINK, AUDIO_SOURCE_VOICE_UPLINK,
//       AUDIO_SOURCE_VOICE_CALL
//    OR Any other client
//        AND The assistant is not on TOP
//        AND is on TOP OR latest started
@@ -463,6 +465,10 @@ void AudioPolicyService::updateUidStates_l()
                (source == AUDIO_SOURCE_VOICE_RECOGNITION || source == AUDIO_SOURCE_HOTWORD)) {
                forceIdle = false;
            }
        } else if (source == AUDIO_SOURCE_VOICE_DOWNLINK ||
                   source == AUDIO_SOURCE_VOICE_CALL ||
                   (source == AUDIO_SOURCE_VOICE_UPLINK)) {
            forceIdle = false;
        } else {
            if (!isAssistantOnTop && (isOnTop || isLatest) &&
                (!isSensitiveActive || isLatestSensitive)) {