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="BatteryThrottle"> 19 <argument name="Type" value="BCL_VOLTAGE" /> 20 <argument name="Name" value="BCL_AUDIO_BAACL" /> 21 <argument name="Strategy" value="MediaSpeakerAndScreenOn" /> 22 </feature> 23 <feature name="BatteryMitigation"> 24 <argument name="TargetDigitalVolume" value="809" /> 25 <argument name="PcmRampMs" value="15ms" /> 26 <argument name="ThrottleDurationMs" value="3000" /> 27 <argument name="ThrottleMitigationLevel" value="LIGHT" /> 28 </feature> 29 <feature name="PlaybackThermalThrottle"> 30 <argument name="PollWaitMs" value="20000" /> 31 <argument name="ThermistorName" value="VIRTUAL-SKIN-SPEAKER" /> 32 <argument name="ThermistorType" value="UNKNOWN" /> 33 <argument name="ThrottlingSeverity" value="LIGHT" /> 34 <argument name="SpeakerPowerPollWaitMs" value="5000" /> 35 </feature> 36 <feature name="RuntimeTuningDump" /> 37 <feature name="SoundDose"> 38 <argument name="Curves" value="blackbird,condor=0,46.35,0.1950549451;54.6,57,0.98625" /> 39 </feature> 40 <feature name="MicrophoneCompensation" /> 41 <feature name="spatializer-offload" /> 42 </features> 43 44 <voipVolume> 45 <path voipDevice="VoipDevice::kUsb"> 46 <gain>0.01</gain> 47 <gain>0.02</gain> 48 <gain>0.04</gain> 49 <gain>0.10</gain> 50 <gain>0.21</gain> 51 <gain>0.47</gain> 52 <gain>1.00</gain> 53 </path> 54 </voipVolume> 55 56 <devices> 57 <device name="bluetooth" /> 58 <device name="usb" /> 59 <device name="speaker" codec="cs35l41"> 60 <argument name="SpeakerNum" value="2" /> 61 <argument name="Rotation" /> 62 <argument name="AcousticShockProtection" /> 63 </device> 64 </devices> 65 66 <tuners> 67 <tuner type="playback" name="waves"> 68 <argument name="Sink" value="SPK" /> 69 <argument name="ThermistorsName" value="VIRTUAL-SKIN-SPEAKER" /> 70 <argument name="Extensions" value="WavesNx,SpeakerPowerLinkLaw" /> 71 </tuner> 72 <tuner type="telephony" name="fortemedia"> 73 <argument name="VoIP_DLCHs" value="SPK:2,USB:2,BT:2" /> 74 <argument name="VoIP_Rate" value="32000" /> 75 <argument name="BOOST_USB_SWB_CLK" value="y" /> 76 <argument name="BOOST_HANDSET_SWB_CLK" value="y" /> 77 <argument name="MCPS_TABLE" value="y" /> 78 <argument name="APPLY_WB_TUNING_FOR_NB_VOICE" value="y" /> 79 <argument name="CCA" value="UnsupportBands:48000,ExSharedBands:48000,VoIPMode:Dl,SupportBWE:y" /> 80 </tuner> 81 <tuner type="capture" name="gs_capture" /> 82 <tuner type="compensation" name="TelephonySpeakerCompensation"> 83 <scenario condition="HingeAngle:0,145" 84 output="LeftChannel:compens_spk_l_1.conf RightChannel:compens_spk_r_1.conf" /> 85 <scenario condition="HingeAngle:146,180" 86 output="LeftChannel:compens_spk_l_2.conf RightChannel:compens_spk_r_2.conf" /> 87 </tuner> 88 </tuners> 89 90 <latencies> 91 <latency source="primary-playback" sink="speaker" milliseconds="20" /> 92 <latency source="primary-playback" sink="usb-device" milliseconds="10" /> 93 <latency source="primary-playback" sink="usb-headset" milliseconds="10" /> 94 <latency source="primary-playback" sink="bluetooth-a2dp-device" milliseconds="100" /> 95 <latency source="primary-playback" sink="bluetooth-low-energy-speaker" milliseconds="100" /> 96 97 <latency source="deep-buffer-playback" sink="speaker" milliseconds="70" /> 98 <latency source="deep-buffer-playback" sink="usb-device" milliseconds="70" /> 99 <latency source="deep-buffer-playback" sink="usb-headset" milliseconds="70" /> 100 <latency source="deep-buffer-playback" sink="bluetooth-a2dp-device" milliseconds="180" /> 101 102 <latency source="compress-offload-playback" sink="speaker" milliseconds="40" /> 103 <latency source="compress-offload-playback" sink="usb-device" milliseconds="40" /> 104 <latency source="compress-offload-playback" sink="usb-headset" milliseconds="40" /> 105 <latency source="compress-offload-playback" sink="bluetooth-a2dp-device" milliseconds="70" /> 106 107 <latency source="immersive-playback" sink="bluetooth-a2dp-device" milliseconds="100" /> 108 109 <latency source="microphones" sink="primary-capture" milliseconds="300" /> 110 <latency source="back-microphones" sink="primary-capture" milliseconds="300" /> 111 <latency source="bluetooth-sco-headset" sink="primary-capture" milliseconds="160" /> 112 <latency source="usb-device-microphones" sink="primary-capture" milliseconds="100" /> 113 <latency source="usb-headset-microphones" sink="primary-capture" milliseconds="100" /> 114 </latencies> 115 116 <spatialCapture> 117 <enablement useCase="primary-capture" deviceInterface="microphones"> 118 <source>MIC</source> 119 <source>CAMCORDER</source> 120 <source>VOICE_RECOGNITION</source> 121 </enablement> 122 <enablement useCase="primary-capture" deviceInterface="back-microphones"> 123 <source>MIC</source> 124 <source>CAMCORDER</source> 125 <source>VOICE_RECOGNITION</source> 126 </enablement> 127 </spatialCapture> 128 129 <microphones> 130 <microphone id="builtin_mic_1" location="MAINBODY" group="0" indexInTheGroup="0" 131 directionality="OMNI"> 132 <device type="IN_MICROPHONE" address="bottom" /> 133 <sensitivity levelDbfs="37.0" maxSplDb="132.5" minSplDb="28.5" /> 134 <position x="0.0269" y="0.0058" z="0.0079" /> 135 <orientation x="0.0" y="0.0" z="1.0" /> 136 <frequencyResponse> 137 <point frequencyHz="100.00" levelDb="-0.78" /> 138 <point frequencyHz="106.00" levelDb="-0.71" /> 139 <point frequencyHz="112.00" levelDb="-0.64" /> 140 <point frequencyHz="118.00" levelDb="-0.60" /> 141 <point frequencyHz="125.00" levelDb="-0.55" /> 142 <point frequencyHz="132.00" levelDb="-0.50" /> 143 <point frequencyHz="140.00" levelDb="-0.47" /> 144 <point frequencyHz="150.00" levelDb="-0.42" /> 145 <point frequencyHz="160.00" levelDb="-0.39" /> 146 <point frequencyHz="170.00" levelDb="-0.36" /> 147 <point frequencyHz="180.00" levelDb="-0.34" /> 148 <point frequencyHz="190.00" levelDb="-0.33" /> 149 <point frequencyHz="200.00" levelDb="-0.32" /> 150 <point frequencyHz="212.00" levelDb="-0.29" /> 151 <point frequencyHz="224.00" levelDb="-0.28" /> 152 <point frequencyHz="236.00" levelDb="-0.28" /> 153 <point frequencyHz="250.00" levelDb="-0.27" /> 154 <point frequencyHz="265.00" levelDb="-0.25" /> 155 <point frequencyHz="280.00" levelDb="-0.25" /> 156 <point frequencyHz="300.00" levelDb="-0.24" /> 157 <point frequencyHz="315.00" levelDb="-0.23" /> 158 <point frequencyHz="335.00" levelDb="-0.23" /> 159 <point frequencyHz="355.00" levelDb="-0.22" /> 160 <point frequencyHz="375.00" levelDb="-0.22" /> 161 <point frequencyHz="400.00" levelDb="-0.19" /> 162 <point frequencyHz="425.00" levelDb="-0.17" /> 163 <point frequencyHz="450.00" levelDb="-0.15" /> 164 <point frequencyHz="475.00" levelDb="-0.15" /> 165 <point frequencyHz="500.00" levelDb="-0.14" /> 166 <point frequencyHz="530.00" levelDb="-0.14" /> 167 <point frequencyHz="560.00" levelDb="-0.12" /> 168 <point frequencyHz="600.00" levelDb="-0.11" /> 169 <point frequencyHz="630.00" levelDb="-0.10" /> 170 <point frequencyHz="670.00" levelDb="-0.10" /> 171 <point frequencyHz="710.00" levelDb="-0.08" /> 172 <point frequencyHz="750.00" levelDb="-0.07" /> 173 <point frequencyHz="800.00" levelDb="-0.07" /> 174 <point frequencyHz="850.00" levelDb="-0.04" /> 175 <point frequencyHz="900.00" levelDb="-0.03" /> 176 <point frequencyHz="950.00" levelDb="-0.01" /> 177 <point frequencyHz="1000.00" levelDb="0.00" /> 178 <point frequencyHz="1060.00" levelDb="0.04" /> 179 <point frequencyHz="1120.00" levelDb="0.06" /> 180 <point frequencyHz="1180.00" levelDb="0.07" /> 181 <point frequencyHz="1250.00" levelDb="0.08" /> 182 <point frequencyHz="1320.00" levelDb="0.13" /> 183 <point frequencyHz="1400.00" levelDb="0.09" /> 184 <point frequencyHz="1500.00" levelDb="0.14" /> 185 <point frequencyHz="1600.00" levelDb="0.19" /> 186 <point frequencyHz="1700.00" levelDb="0.23" /> 187 <point frequencyHz="1800.00" levelDb="0.28" /> 188 <point frequencyHz="1900.00" levelDb="0.29" /> 189 <point frequencyHz="2000.00" levelDb="0.31" /> 190 <point frequencyHz="2120.00" levelDb="0.37" /> 191 <point frequencyHz="2240.00" levelDb="0.88" /> 192 <point frequencyHz="2360.00" levelDb="0.86" /> 193 <point frequencyHz="2500.00" levelDb="0.77" /> 194 <point frequencyHz="2650.00" levelDb="0.78" /> 195 <point frequencyHz="2800.00" levelDb="0.84" /> 196 <point frequencyHz="3000.00" levelDb="0.86" /> 197 <point frequencyHz="3150.00" levelDb="1.05" /> 198 <point frequencyHz="3350.00" levelDb="1.12" /> 199 <point frequencyHz="3550.00" levelDb="1.18" /> 200 <point frequencyHz="3750.00" levelDb="1.25" /> 201 <point frequencyHz="4000.00" levelDb="1.43" /> 202 <point frequencyHz="4250.00" levelDb="1.66" /> 203 <point frequencyHz="4500.00" levelDb="1.83" /> 204 <point frequencyHz="4750.00" levelDb="2.02" /> 205 <point frequencyHz="5000.00" levelDb="2.23" /> 206 <point frequencyHz="5300.00" levelDb="2.59" /> 207 <point frequencyHz="5600.00" levelDb="2.84" /> 208 <point frequencyHz="6000.00" levelDb="3.35" /> 209 <point frequencyHz="6300.00" levelDb="4.01" /> 210 <point frequencyHz="6700.00" levelDb="6.82" /> 211 <point frequencyHz="7100.00" levelDb="6.62" /> 212 <point frequencyHz="7500.00" levelDb="6.42" /> 213 <point frequencyHz="8000.00" levelDb="7.30" /> 214 <point frequencyHz="8500.00" levelDb="8.23" /> 215 <point frequencyHz="9000.00" levelDb="7.54" /> 216 <point frequencyHz="9500.00" levelDb="12.68" /> 217 <point frequencyHz="10000.00" levelDb="13.76" /> 218 <point frequencyHz="10600.00" levelDb="18.69" /> 219 <point frequencyHz="11200.00" levelDb="19.68" /> 220 <point frequencyHz="11800.00" levelDb="20.90" /> 221 <point frequencyHz="12500.00" levelDb="23.70" /> 222 <point frequencyHz="13200.00" levelDb="25.10" /> 223 <point frequencyHz="14000.00" levelDb="21.65" /> 224 <point frequencyHz="15000.00" levelDb="16.18" /> 225 <point frequencyHz="16000.00" levelDb="18.84" /> 226 <point frequencyHz="17000.00" levelDb="25.44" /> 227 <point frequencyHz="18000.00" levelDb="23.48" /> 228 <point frequencyHz="19000.00" levelDb="23.22" /> 229 <point frequencyHz="20000.00" levelDb="24.89" /> 230 </frequencyResponse> 231 </microphone> 232 <microphone id="builtin_mic_2" location="MAINBODY" group="0" indexInTheGroup="1" 233 directionality="OMNI"> 234 <device type="IN_MICROPHONE_BACK" address="back" /> 235 <sensitivity levelDbfs="-37.0" maxSplDb="132.5" minSplDb="28.5" /> 236 <position x="0.0546" y="0.1456" z="0.00415" /> 237 <orientation x="0.0" y="1.0" z="0.0" /> 238 <frequencyResponse> 239 <point frequencyHz="106.00" levelDb="-0.75" /> 240 <point frequencyHz="112.00" levelDb="-0.74" /> 241 <point frequencyHz="118.00" levelDb="-0.69" /> 242 <point frequencyHz="125.00" levelDb="-0.65" /> 243 <point frequencyHz="132.00" levelDb="-0.62" /> 244 <point frequencyHz="140.00" levelDb="-0.61" /> 245 <point frequencyHz="150.00" levelDb="-0.56" /> 246 <point frequencyHz="160.00" levelDb="-0.53" /> 247 <point frequencyHz="170.00" levelDb="-0.50" /> 248 <point frequencyHz="180.00" levelDb="-0.47" /> 249 <point frequencyHz="190.00" levelDb="-0.43" /> 250 <point frequencyHz="200.00" levelDb="-0.40" /> 251 <point frequencyHz="212.00" levelDb="-0.37" /> 252 <point frequencyHz="224.00" levelDb="-0.36" /> 253 <point frequencyHz="236.00" levelDb="-0.33" /> 254 <point frequencyHz="250.00" levelDb="-0.30" /> 255 <point frequencyHz="265.00" levelDb="-0.28" /> 256 <point frequencyHz="280.00" levelDb="-0.25" /> 257 <point frequencyHz="300.00" levelDb="-0.24" /> 258 <point frequencyHz="315.00" levelDb="-0.24" /> 259 <point frequencyHz="335.00" levelDb="-0.24" /> 260 <point frequencyHz="355.00" levelDb="-0.25" /> 261 <point frequencyHz="375.00" levelDb="-0.24" /> 262 <point frequencyHz="400.00" levelDb="-0.12" /> 263 <point frequencyHz="425.00" levelDb="-0.10" /> 264 <point frequencyHz="450.00" levelDb="-0.08" /> 265 <point frequencyHz="475.00" levelDb="-0.09" /> 266 <point frequencyHz="500.00" levelDb="-0.07" /> 267 <point frequencyHz="530.00" levelDb="-0.07" /> 268 <point frequencyHz="560.00" levelDb="-0.06" /> 269 <point frequencyHz="600.00" levelDb="-0.06" /> 270 <point frequencyHz="630.00" levelDb="-0.06" /> 271 <point frequencyHz="670.00" levelDb="-0.05" /> 272 <point frequencyHz="710.00" levelDb="-0.04" /> 273 <point frequencyHz="750.00" levelDb="-0.05" /> 274 <point frequencyHz="800.00" levelDb="-0.04" /> 275 <point frequencyHz="850.00" levelDb="-0.01" /> 276 <point frequencyHz="900.00" levelDb="0.02" /> 277 <point frequencyHz="950.00" levelDb="0.02" /> 278 <point frequencyHz="1000.00" levelDb="0.00" /> 279 <point frequencyHz="1060.00" levelDb="0.02" /> 280 <point frequencyHz="1120.00" levelDb="0.03" /> 281 <point frequencyHz="1180.00" levelDb="0.07" /> 282 <point frequencyHz="1250.00" levelDb="0.10" /> 283 <point frequencyHz="1320.00" levelDb="0.10" /> 284 <point frequencyHz="1400.00" levelDb="0.13" /> 285 <point frequencyHz="1500.00" levelDb="0.01" /> 286 <point frequencyHz="1600.00" levelDb="0.01" /> 287 <point frequencyHz="1700.00" levelDb="0.10" /> 288 <point frequencyHz="1800.00" levelDb="0.11" /> 289 <point frequencyHz="1900.00" levelDb="0.19" /> 290 <point frequencyHz="2000.00" levelDb="0.24" /> 291 <point frequencyHz="2120.00" levelDb="0.38" /> 292 <point frequencyHz="2240.00" levelDb="0.46" /> 293 <point frequencyHz="2360.00" levelDb="0.26" /> 294 <point frequencyHz="2500.00" levelDb="0.27" /> 295 <point frequencyHz="2650.00" levelDb="0.43" /> 296 <point frequencyHz="2800.00" levelDb="0.76" /> 297 <point frequencyHz="3000.00" levelDb="0.75" /> 298 <point frequencyHz="3150.00" levelDb="1.09" /> 299 <point frequencyHz="3350.00" levelDb="1.09" /> 300 <point frequencyHz="3550.00" levelDb="0.94" /> 301 <point frequencyHz="3750.00" levelDb="1.06" /> 302 <point frequencyHz="4000.00" levelDb="1.21" /> 303 <point frequencyHz="4250.00" levelDb="1.47" /> 304 <point frequencyHz="4500.00" levelDb="1.45" /> 305 <point frequencyHz="4750.00" levelDb="1.36" /> 306 <point frequencyHz="5000.00" levelDb="2.07" /> 307 <point frequencyHz="5300.00" levelDb="2.85" /> 308 <point frequencyHz="5600.00" levelDb="2.90" /> 309 <point frequencyHz="6000.00" levelDb="3.85" /> 310 <point frequencyHz="6300.00" levelDb="4.65" /> 311 <point frequencyHz="6700.00" levelDb="5.84" /> 312 <point frequencyHz="7100.00" levelDb="5.46" /> 313 <point frequencyHz="7500.00" levelDb="6.15" /> 314 <point frequencyHz="8000.00" levelDb="7.50" /> 315 <point frequencyHz="8500.00" levelDb="8.30" /> 316 <point frequencyHz="9000.00" levelDb="10.62" /> 317 <point frequencyHz="9500.00" levelDb="12.70" /> 318 <point frequencyHz="10000.00" levelDb="16.65" /> 319 <point frequencyHz="10600.00" levelDb="20.95" /> 320 <point frequencyHz="11200.00" levelDb="25.41" /> 321 <point frequencyHz="11800.00" levelDb="26.32" /> 322 <point frequencyHz="12500.00" levelDb="20.20" /> 323 <point frequencyHz="13200.00" levelDb="16.60" /> 324 <point frequencyHz="14000.00" levelDb="11.24" /> 325 <point frequencyHz="15000.00" levelDb="7.85" /> 326 <point frequencyHz="16000.00" levelDb="7.62" /> 327 <point frequencyHz="17000.00" levelDb="20.19" /> 328 <point frequencyHz="18000.00" levelDb="7.32" /> 329 <point frequencyHz="19000.00" levelDb="2.87" /> 330 <point frequencyHz="20000.00" levelDb="5.18" /> 331 </frequencyResponse> 332 </microphone> 333 </microphones> 334 335 <xi:include href="audio_policy_volumes.xml" /> 336 <xi:include href="default_volume_tables.xml" /> 337</audioPlatformConfiguration> 338