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

Commit eeb0f348 authored by kunleiz's avatar kunleiz Committed by Gerrit - the friendly Code Review server
Browse files

policy_hal: fix VoIP rx path use ULL usecase

During VoIP use audio path scenario, ULL usecase is
used for VoIP rx path due to AUDIO_OUTPUT_FLAG_RAW is
set. And primary output is on standby status. Due to
it, VoIP tx device cannot get proper device.

Fix this by setting primary outupt flag when VoIP RX
use audio path.

CRs-Fixed: 2051669
Change-Id: I878486d8e0805d9fccae524c5fc2fc6240dfe8f9
parent 12d507dc
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1554,6 +1554,9 @@ audio_io_handle_t AudioPolicyManagerCustom::getOutputForDevice(
                    flags = (audio_output_flags_t)(AUDIO_OUTPUT_FLAG_VOIP_RX |
                                                 AUDIO_OUTPUT_FLAG_DIRECT);
                    ALOGD("Set VoIP and Direct output flags for PCM format");
                } else {
                   //If VoIP is going in audio path, make VoIP use primary output
                   flags = (audio_output_flags_t)(AUDIO_OUTPUT_FLAG_FAST|AUDIO_OUTPUT_FLAG_PRIMARY);
                }
            }
        }