diff options
author | Jasmine Cha <chajasmine@google.com> | 2020-03-31 12:18:54 +0800 |
---|---|---|
committer | sinanmohd <pcmsinan@gmail.com> | 2023-01-05 21:27:38 +0530 |
commit | dcb1e2f775a0e498aaf9bcc1e384884cd47717f6 (patch) | |
tree | ce65dc81b0e494db08f5bf439646e667f3bb1385 | |
parent | e3e85041da0723dc7b899fe992307e337d5dbf15 (diff) |
veux: audio: correct routing order for voip output
Routing primary output before voip_rx output will cause unexpected
RX/TX path suddenly and unmuted voice stream during when system
plays touch sound and switches path between handset and handsfree.
Bug: 154290829
Test: manual test in VoIP
Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: Ia60802ec887f0dfeaa0f93d151ba2f2c50e0d41d
-rw-r--r-- | audio/audio_policy_configuration.xml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/audio/audio_policy_configuration.xml b/audio/audio_policy_configuration.xml index 8b4c609..37db9de 100644 --- a/audio/audio_policy_configuration.xml +++ b/audio/audio_policy_configuration.xml @@ -37,6 +37,11 @@ </attachedDevices> <defaultOutputDevice>Speaker</defaultOutputDevice> <mixPorts> + <mixPort name="voip_rx" role="source" + flags="AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_VOIP_RX"> + <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" + samplingRates="8000,16000,32000,48000" channelMasks="AUDIO_CHANNEL_OUT_MONO"/> + </mixPort> <mixPort name="primary output" role="source" flags="AUDIO_OUTPUT_FLAG_FAST|AUDIO_OUTPUT_FLAG_PRIMARY"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> @@ -121,11 +126,6 @@ <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" samplingRates="8000,16000,48000" channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/> </mixPort> - <mixPort name="voip_rx" role="source" - flags="AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_VOIP_RX"> - <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" - samplingRates="8000,16000,32000,48000" channelMasks="AUDIO_CHANNEL_OUT_MONO"/> - </mixPort> <mixPort name="incall_music_uplink" role="source" flags="AUDIO_OUTPUT_FLAG_INCALL_MUSIC"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" |