1<?xml version="1.0" encoding="UTF-8" standalone="yes"?> 2<!-- Copyright (C) 2023 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15--> 16<audioPlatformConfiguration xmlns:xi="http://www.w3.org/2001/XInclude"> 17 <features> 18 <feature name="ThermalThrottle"> 19 <argument name="Type" value="SKIN" /> 20 <argument name="Name" value="VIRTUAL-SKIN" /> 21 </feature> 22 <feature name="BatteryThrottle"> 23 <argument name="Type" value="BCL_VOLTAGE" /> 24 <argument name="Name" value="BCL_AUDIO_BAACL" /> 25 <argument name="Strategy" value="MediaSpeakerAndScreenOn" /> 26 </feature> 27 <feature name="PlaybackThermalThrottle"> 28 <argument name="PollWaitMs" value="20000" /> 29 <argument name="ThermistorName" value="VIRTUAL-SKIN" /> 30 <argument name="ThermistorType" value="SKIN" /> 31 <argument name="ThrottlingSeverity" value="MODERATE" /> 32 </feature> 33 </features> 34 35 <voipVolume> 36 <path voipDevice="VoipDevice::kUsb"> 37 <gain>0.01</gain> 38 <gain>0.02</gain> 39 <gain>0.04</gain> 40 <gain>0.10</gain> 41 <gain>0.21</gain> 42 <gain>0.47</gain> 43 <gain>1.00</gain> 44 </path> 45 </voipVolume> 46 47 <devices> 48 <device name="bluetooth" /> 49 <device name="usb"> 50 <argument name="MaxSamplingRate" value="192000" /> 51 <argument name="UnsupportedFormat" value="S24_LE" /> 52 <argument name="MaxCapPacketInterval" value="125" /> 53 <argument name="MaxCapSampleRate" value="192000" /> 54 <argument name="MaxCapBitWidth" value="32" /> 55 <argument name="MaxCapChannel" value="2" /> 56 <argument name="EnableHifi192kMultichannel" value="0" /> 57 </device> 58 <device name="speaker" codec="cs35l41"> 59 <argument name="SpeakerNum" value="2" /> 60 <argument name="Rotation" /> 61 <argument name="AcousticShockProtection" /> 62 </device> 63 </devices> 64 65 <tuners> 66 <tuner type="playback" name="waves"> 67 <argument name="Sink" value="SPK" /> 68 <argument name="ThermistorsName" value="VIRTUAL-SKIN" /> 69 </tuner> 70 <tuner type="telephony" name="fortemedia"> 71 <argument name="VoIP_DLCHs" value="SPK:2,USB:2" /> 72 <argument name="VoIP_Rate" value="32000" /> 73 <argument name="BOOST_USB_SWB_CLK" value="y" /> 74 <argument name="CCA" value="y" /> 75 </tuner> 76 <tuner type="capture" name="gs_capture" /> 77 </tuners> 78 79 <latencies> 80 <latency source="primary-playback" sink="speaker" milliseconds="20" /> 81 <latency source="primary-playback" sink="usb-device" milliseconds="60" /> 82 <latency source="primary-playback" sink="usb-headset" milliseconds="60" /> 83 <latency source="primary-playback" sink="bluetooth-a2dp-device" milliseconds="60" /> 84 <latency source="primary-playback" sink="bluetooth-low-energy-speaker" milliseconds="60" /> 85 86 <latency source="deep-buffer-playback" sink="speaker" milliseconds="70" /> 87 <latency source="deep-buffer-playback" sink="usb-device" milliseconds="70" /> 88 <latency source="deep-buffer-playback" sink="usb-headset" milliseconds="70" /> 89 <latency source="deep-buffer-playback" sink="bluetooth-a2dp-device" milliseconds="180" /> 90 <latency source="deep-buffer-playback" sink="bluetooth-low-energy-speaker" milliseconds="80" /> 91 92 <latency source="compress-offload-playback" sink="speaker" milliseconds="40" /> 93 <latency source="compress-offload-playback" sink="usb-device" milliseconds="40" /> 94 <latency source="compress-offload-playback" sink="usb-headset" milliseconds="40" /> 95 <latency source="compress-offload-playback" sink="bluetooth-a2dp-device" milliseconds="70" /> 96 <latency source="compress-offload-playback" sink="bluetooth-low-energy-speaker" 97 milliseconds="20" /> 98 99 <latency source="immersive-playback" sink="bluetooth-a2dp-device" milliseconds="100" /> 100 101 <latency source="microphones" sink="primary-capture" milliseconds="160" /> 102 <latency source="back-microphones" sink="primary-capture" milliseconds="160" /> 103 <latency source="bluetooth-sco-headset" sink="primary-capture" milliseconds="40" /> 104 </latencies> 105 106 <spatialCapture> 107 <enablement useCase="primary-capture" deviceInterface="microphones"> 108 <source>MIC</source> 109 <source>CAMCORDER</source> 110 <source>VOICE_RECOGNITION</source> 111 </enablement> 112 <enablement useCase="primary-capture" deviceInterface="back-microphones"> 113 <source>MIC</source> 114 <source>CAMCORDER</source> 115 <source>VOICE_RECOGNITION</source> 116 </enablement> 117 </spatialCapture> 118 119 <xi:include href="audio_policy_volumes.xml" /> 120 <xi:include href="default_volume_tables.xml" /> 121</audioPlatformConfiguration> 122