diff options
-rw-r--r-- | audio/audio_policy_configuration.xml | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/audio/audio_policy_configuration.xml b/audio/audio_policy_configuration.xml index f1362dc..9b0234b 100644 --- a/audio/audio_policy_configuration.xml +++ b/audio/audio_policy_configuration.xml @@ -3,10 +3,13 @@ Not a Contribution. --> <!-- Copyright (C) 2015 The Android Open Source Project + Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 + Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -60,6 +63,11 @@ <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> </mixPort> + <mixPort name="raw" role="source" + flags="AUDIO_OUTPUT_FLAG_FAST|AUDIO_OUTPUT_FLAG_RAW"> + <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" + samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> + </mixPort> <mixPort name="deep_buffer" role="source" flags="AUDIO_OUTPUT_FLAG_DEEP_BUFFER"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" @@ -129,7 +137,7 @@ samplingRates="8000,16000,32000" channelMasks="AUDIO_CHANNEL_OUT_MONO"/> </mixPort> - <mixPort name="primary input" role="sink"> + <mixPort name="primary input" role="sink" maxOpenCount="2" maxActiveCount="2"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000" channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_IN_FRONT_BACK"/> @@ -243,27 +251,27 @@ <!-- route declaration, i.e. list all available sources for a given sink --> <routes> <route type="mix" sink="Earpiece" - sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx"/> + sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx"/> <route type="mix" sink="Speaker" - sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx"/> + sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx"/> <route type="mix" sink="Wired Headset" - sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx"/> + sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx"/> <route type="mix" sink="Wired Headphones" - sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx"/> + sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx"/> <route type="mix" sink="Line" - sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx"/> + sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx"/> <route type="mix" sink="HDMI" - sources="primary output,deep_buffer,direct_pcm,compressed_offload"/> + sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload"/> <route type="mix" sink="Proxy" - sources="primary output,deep_buffer,direct_pcm,compressed_offload"/> + sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload"/> <route type="mix" sink="FM" sources="primary output"/> <route type="mix" sink="BT SCO All" - sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx"/> + sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx"/> <route type="mix" sink="Telephony Tx" sources="voice_tx"/> <route type="mix" sink="primary input" - sources="Built-In Mic,Wired Headset Mic,BT SCO Headset Mic,FM Tuner,Telephony Rx"/> + sources="Wired Headset Mic,BT SCO Headset Mic,FM Tuner,Telephony Rx"/> <route type="mix" sink="surround_sound" sources="Built-In Mic,Built-In Back Mic"/> <route type="mix" sink="record_24" |