audio: add compressed offload to the AIDL audio_policy_configuration.xml am: 608f8ceaf1

Original change: https://googleplex-android-review.googlesource.com/c/device/google/lynx/+/21646730

Change-Id: Iafc120c2031772afbaf7e5793cd8d58ae7fd058b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
David Li
2023-03-07 11:48:45 +00:00
committed by Automerger Merge Worker
2 changed files with 18 additions and 3 deletions

View File

@@ -36,6 +36,21 @@
<profile name="" format="AUDIO_FORMAT_PCM_FLOAT" <profile name="" format="AUDIO_FORMAT_PCM_FLOAT"
samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
</mixPort> </mixPort>
<mixPort name="compressed offload" role="source"
flags="AUDIO_OUTPUT_FLAG_DIRECT AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD AUDIO_OUTPUT_FLAG_NON_BLOCKING AUDIO_OUTPUT_FLAG_GAPLESS_OFFLOAD">
<profile name="" format="AUDIO_FORMAT_MP3"
samplingRates="8000 16000 24000 32000 44100 48000"
channelMasks="AUDIO_CHANNEL_OUT_STEREO AUDIO_CHANNEL_OUT_MONO"/>
<profile name="" format="AUDIO_FORMAT_AAC_LC"
samplingRates="8000 16000 24000 32000 44100 48000"
channelMasks="AUDIO_CHANNEL_OUT_STEREO AUDIO_CHANNEL_OUT_MONO"/>
<profile name="" format="AUDIO_FORMAT_AAC_HE_V1"
samplingRates="8000 16000 24000 32000 44100 48000"
channelMasks="AUDIO_CHANNEL_OUT_STEREO AUDIO_CHANNEL_OUT_MONO"/>
<profile name="" format="AUDIO_FORMAT_AAC_HE_V2"
samplingRates="8000 16000 24000 32000 44100 48000"
channelMasks="AUDIO_CHANNEL_OUT_STEREO AUDIO_CHANNEL_OUT_MONO"/>
</mixPort>
<mixPort name="haptic" role="source"> <mixPort name="haptic" role="source">
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT" <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
samplingRates="48000" samplingRates="48000"
@@ -152,9 +167,9 @@
<!-- route declaration, i.e. list all available sources for a given sink --> <!-- route declaration, i.e. list all available sources for a given sink -->
<routes> <routes>
<route type="mix" sink="Earpiece" <route type="mix" sink="Earpiece"
sources="primary output,deep buffer,haptic,voip_rx"/> sources="primary output,deep buffer,haptic,voip_rx,compressed offload"/>
<route type="mix" sink="Speaker" <route type="mix" sink="Speaker"
sources="primary output,deep buffer,haptic,voip_rx"/> sources="primary output,deep buffer,haptic,voip_rx,compressed offload"/>
<route type="mix" sink="primary input" <route type="mix" sink="primary input"
sources="Built-In Mic,Built-In Back Mic"/> sources="Built-In Mic,Built-In Back Mic"/>
<route type="mix" sink="voip_tx" <route type="mix" sink="voip_tx"

View File

@@ -310,7 +310,7 @@
<ctl name="Incall Sink Mute" value="0" /> <ctl name="Incall Sink Mute" value="0" />
<ctl name="Incall Mic Mute" value="0" /> <ctl name="Incall Mic Mute" value="0" />
<!-- Decoder Reference Enable is controlled in aoc_control --> <ctl name="Compress Offload Volume" value="1000" />
<ctl name="Decoder Reference Enable" value="0" /> <ctl name="Decoder Reference Enable" value="0" />
<ctl name="LVM Enable" value="0" /> <ctl name="LVM Enable" value="0" />