audio: Replace qcom's deep_buffer with AOSP low_latency
It looks deep_buffer causes issues on the FP2 and was introduced
by accident during the audio_policy xml transformation
This fixes audio latency and stutters issues
Change-Id: I96f5e8f2ef3d268decbf11d3797c1f02a782034f
diff --git a/audio/audio_policy_configuration.xml b/audio/audio_policy_configuration.xml
index c9fefbd..bba442f 100644
--- a/audio/audio_policy_configuration.xml
+++ b/audio/audio_policy_configuration.xml
@@ -62,8 +62,8 @@
<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">
+ <mixPort name="low_latency" role="source"
+ flags="AUDIO_OUTPUT_FLAG_FAST">
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
samplingRates="44100,48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
</mixPort>
@@ -169,27 +169,27 @@
<!-- route declaration, i.e. list all available sources for a given sink -->
<routes>
<route type="mix" sink="Earpiece"
- sources="primary output,deep_buffer,voip_rx"/>
+ sources="primary output,low_latency,voip_rx"/>
<route type="mix" sink="Speaker"
- sources="primary output,deep_buffer,voip_rx"/>
+ sources="primary output,low_latency,voip_rx"/>
<route type="mix" sink="Wired Headset"
- sources="primary output,deep_buffer,voip_rx"/>
+ sources="primary output,low_latency,voip_rx"/>
<route type="mix" sink="Wired Headphones"
- sources="primary output,deep_buffer,voip_rx"/>
+ sources="primary output,low_latency,voip_rx"/>
<route type="mix" sink="Line"
- sources="primary output,deep_buffer,voip_rx"/>
+ sources="primary output,low_latency,voip_rx"/>
<route type="mix" sink="HDMI"
- sources="primary output,deep_buffer"/>
+ sources="primary output,low_latency"/>
<route type="mix" sink="Proxy"
- sources="primary output,deep_buffer"/>
+ sources="primary output,low_latency"/>
<route type="mix" sink="FM"
sources="primary output"/>
<route type="mix" sink="BT SCO"
- sources="primary output,deep_buffer,voip_rx"/>
+ sources="primary output,low_latency,voip_rx"/>
<route type="mix" sink="BT SCO Headset"
- sources="primary output,deep_buffer,voip_rx"/>
+ sources="primary output,low_latency,voip_rx"/>
<route type="mix" sink="BT SCO Car Kit"
- sources="primary output,deep_buffer,voip_rx"/>
+ sources="primary output,low_latency,voip_rx"/>
<route type="mix" sink="Telephony Tx"
sources="voice_tx"/>
<route type="mix" sink="primary input"