mirror of
https://github.com/Evolution-X-Devices/device_oneplus_sm8550-common
synced 2026-02-01 11:00:20 +00:00
236 lines
8.8 KiB
XML
236 lines
8.8 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!-- 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.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
<!-- Default Volume Tables included by Audio Policy Configuration file -->
|
|
<!-- Full Default Volume table for all device category -->
|
|
<volumes>
|
|
<reference name="FULL_SCALE_VOLUME_CURVE">
|
|
<!-- Full Scale reference Volume Curve -->
|
|
<point>0,0</point>
|
|
<point>100,0</point>
|
|
</reference>
|
|
<reference name="SILENT_VOLUME_CURVE">
|
|
<point>0,-9600</point>
|
|
<point>100,-9600</point>
|
|
</reference>
|
|
<!-- #ifndef OPLUS_BUG_STABILITY
|
|
//YaJun.Li@MM.AudioServer.Policy, 2019/08/21,Add for voice volume -->
|
|
<reference name="DEFAULT_VOICE_VOLUME_CURVE">
|
|
<!-- Default Voice reference Volume Curve -->
|
|
<point>0,-4200</point>
|
|
<point>33,-2800</point>
|
|
<point>66,-1400</point>
|
|
<point>100,0</point>
|
|
</reference>
|
|
<!-- #endif OPLUS_BUG_STABILITY -->
|
|
<reference name="DEFAULT_SYSTEM_VOLUME_CURVE">
|
|
<!-- Default System reference Volume Curve -->
|
|
<point>1,-2400</point>
|
|
<point>33,-1800</point>
|
|
<point>66,-1200</point>
|
|
<point>100,-600</point>
|
|
</reference>
|
|
<reference name="DEFAULT_MEDIA_VOLUME_CURVE">
|
|
<!-- Default Media reference Volume Curve -->
|
|
<!-- #ifndef OPLUS_BUG_STABILITY
|
|
//YaJun.Li@PSW.MM.AudioServer.Policy, 2019/08/21
|
|
//Modify for headset music min and default volume
|
|
<point>1,-5800</point>
|
|
<point>20,-4000</point>
|
|
<point>60,-1700</point>
|
|
<point>100,0</point>
|
|
#else /* OPLUS_BUG_STABILITY */ -->
|
|
<point>1,-7000</point>
|
|
<point>10,-6100</point>
|
|
<point>20,-5500</point>
|
|
<point>30,-4900</point>
|
|
<point>40,-4400</point>
|
|
<point>50,-3800</point>
|
|
<point>60,-3200</point>
|
|
<point>70,-2860</point>
|
|
<point>80,-2560</point>
|
|
<point>90,-2260</point>
|
|
<point>100,-1960</point>
|
|
<point>110,-1650</point>
|
|
<point>120,-1350</point>
|
|
<point>130,-1000</point>
|
|
<point>140,-700</point>
|
|
<point>150,-350</point>
|
|
<point>160,-20</point>
|
|
<!-- #endif /* OPLUS_BUG_STABILITY */ -->
|
|
</reference>
|
|
<!-- #ifdef OPLUS_BUG_STABILITY
|
|
//Qinhui.Gu@PSW.MM.AudioServer.Policy, 2019/12/11, add USB_HEADSET device category for tuning separately -->
|
|
<reference name="DEFAULT_MEDIA_VOLUME_CURVE_USB_HEADSET">
|
|
<!-- USB_HEADSET Media reference Volume Curve -->
|
|
<point>1,-7000</point>
|
|
<point>10,-6250</point>
|
|
<point>20,-5650</point>
|
|
<point>30,-5150</point>
|
|
<point>40,-4650</point>
|
|
<point>50,-4100</point>
|
|
<point>60,-3500</point>
|
|
<point>70,-3150</point>
|
|
<point>80,-2850</point>
|
|
<point>90,-2550</point>
|
|
<point>100,-2250</point>
|
|
<point>110,-1950</point>
|
|
<point>120,-1650</point>
|
|
<point>130,-1300</point>
|
|
<point>140,-950</point>
|
|
<point>150,-600</point>
|
|
<point>160,-250</point>
|
|
</reference>
|
|
<!-- #endif /* OPLUS_BUG_STABILITY */ -->
|
|
<reference name="DEFAULT_MEDIA_VOLUME_CURVE_A2DP">
|
|
<!-- Default Media reference Volume Curve -->
|
|
<!-- #ifndef OPLUS_BUG_STABILITY
|
|
//YaJun.Li@PSW.MM.AudioServer.Policy, 2019/08/21,
|
|
// Modify for bluetooth headset music min and default volume
|
|
<point>1,-5800</point>
|
|
<point>20,-4000</point>
|
|
<point>60,-1700</point>
|
|
<point>100,0</point>
|
|
#else /* OPLUS_BUG_STABILITY */ -->
|
|
<point>1,-7000</point>
|
|
<point>10,-5200</point>
|
|
<point>20,-4800</point>
|
|
<point>30,-4500</point>
|
|
<point>40,-4200</point>
|
|
<point>50,-3900</point>
|
|
<point>60,-3600</point>
|
|
<point>70,-3300</point>
|
|
<point>80,-3000</point>
|
|
<point>90,-2700</point>
|
|
<point>100,-2300</point>
|
|
<point>110,-2000</point>
|
|
<point>120,-1600</point>
|
|
<point>130,-1200</point>
|
|
<point>140,-900</point>
|
|
<point>150,-600</point>
|
|
<point>160,-380</point>
|
|
<!-- #endif /* OPLUS_BUG_STABILITY */ -->
|
|
</reference>
|
|
<reference name="DEFAULT_DEVICE_CATEGORY_HEADSET_VOLUME_CURVE">
|
|
<!--Default Volume Curve -->
|
|
<point>1,-4950</point>
|
|
<point>33,-3350</point>
|
|
<point>66,-1700</point>
|
|
<point>100,0</point>
|
|
</reference>
|
|
<reference name="DEFAULT_DEVICE_CATEGORY_SPEAKER_VOLUME_CURVE">
|
|
<!-- Default is Speaker Media Volume Curve -->
|
|
<!-- #ifndef OPLUS_BUG_STABILITY
|
|
//YaJun.Li@PSW.MM.AudioServer.Policy, 2019/08/21
|
|
//Modify for speaker music default volume for 19065
|
|
<point>1,-5800</point>
|
|
<point>20,-4000</point>
|
|
<point>60,-1700</point>
|
|
<point>100,0</point>
|
|
#else /* OPLUS_BUG_STABILITY */ -->
|
|
<point>1,-6000</point>
|
|
<point>10,-5500</point>
|
|
<point>20,-4500</point>
|
|
<point>30,-3950</point>
|
|
<point>40,-3400</point>
|
|
<point>50,-3000</point>
|
|
<point>60,-2600</point>
|
|
<point>70,-2300</point>
|
|
<point>80,-2050</point>
|
|
<point>90,-1880</point>
|
|
<point>100,-1680</point>
|
|
<point>110,-1290</point>
|
|
<point>120,-970</point>
|
|
<point>130,-750</point>
|
|
<point>140,-540</point>
|
|
<point>150,-150</point>
|
|
<point>160,0</point>
|
|
<!-- #endif /* OPLUS_BUG_STABILITY */ -->
|
|
</reference>
|
|
<reference name="DEFAULT_DEVICE_CATEGORY_EARPIECE_VOLUME_CURVE">
|
|
<!--Default Volume Curve -->
|
|
<point>1,-4950</point>
|
|
<point>33,-3350</point>
|
|
<point>66,-1700</point>
|
|
<point>100,0</point>
|
|
</reference>
|
|
<reference name="DEFAULT_DEVICE_CATEGORY_EXT_MEDIA_VOLUME_CURVE">
|
|
<!-- Default is Ext Media System Volume Curve -->
|
|
<point>1,-5800</point>
|
|
<point>20,-4000</point>
|
|
<point>60,-2100</point>
|
|
<point>100,-1000</point>
|
|
</reference>
|
|
<reference name="DEFAULT_HEARING_AID_VOLUME_CURVE">
|
|
<!-- Default Hearing Aid Volume Curve -->
|
|
<point>1,-12700</point>
|
|
<point>20,-8000</point>
|
|
<point>60,-4000</point>
|
|
<point>100,0</point>
|
|
</reference>
|
|
<!-- **************************************************************** -->
|
|
<!-- Non-mutable default volume curves: -->
|
|
<!-- * first point is always for index 0 -->
|
|
<!-- * attenuation is small enough that stream can still be heard -->
|
|
<reference name="DEFAULT_NON_MUTABLE_VOLUME_CURVE">
|
|
<!-- Default non-mutable reference Volume Curve -->
|
|
<!-- based on DEFAULT_MEDIA_VOLUME_CURVE -->
|
|
<point>0,-5800</point>
|
|
<point>20,-4000</point>
|
|
<point>60,-1700</point>
|
|
<point>100,0</point>
|
|
</reference>
|
|
<reference name="DEFAULT_NON_MUTABLE_HEADSET_VOLUME_CURVE">
|
|
<!--Default non-mutable Volume Curve for headset -->
|
|
<!-- based on DEFAULT_DEVICE_CATEGORY_HEADSET_VOLUME_CURVE -->
|
|
<point>0,-4950</point>
|
|
<point>33,-3350</point>
|
|
<point>66,-1700</point>
|
|
<point>100,0</point>
|
|
</reference>
|
|
<reference name="DEFAULT_NON_MUTABLE_SPEAKER_VOLUME_CURVE">
|
|
<!-- Default non-mutable Speaker Volume Curve -->
|
|
<!-- based on DEFAULT_DEVICE_CATEGORY_SPEAKER_VOLUME_CURVE -->
|
|
<point>0,-5800</point>
|
|
<point>20,-4000</point>
|
|
<point>60,-1700</point>
|
|
<point>100,0</point>
|
|
</reference>
|
|
<reference name="DEFAULT_NON_MUTABLE_EARPIECE_VOLUME_CURVE">
|
|
<!--Default non-mutable Volume Curve -->
|
|
<!-- based on DEFAULT_DEVICE_CATEGORY_EARPIECE_VOLUME_CURVE -->
|
|
<point>0,-4950</point>
|
|
<point>33,-3350</point>
|
|
<point>66,-1700</point>
|
|
<point>100,0</point>
|
|
</reference>
|
|
<reference name="DEFAULT_NON_MUTABLE_EXT_VOLUME_CURVE">
|
|
<!-- Default non-mutable Ext Media System Volume Curve -->
|
|
<!-- based on DEFAULT_DEVICE_CATEGORY_EXT_MEDIA_VOLUME_CURVE -->
|
|
<point>0,-5800</point>
|
|
<point>20,-4000</point>
|
|
<point>60,-2100</point>
|
|
<point>100,-1000</point>
|
|
</reference>
|
|
<reference name="DEFAULT_NON_MUTABLE_HEARING_AID_VOLUME_CURVE">
|
|
<!-- Default non-mutable Hearing Aid Volume Curve -->
|
|
<!-- based on DEFAULT_HEARING_AID_VOLUME_CURVE -->
|
|
<point>0,-12700</point>
|
|
<point>20,-8000</point>
|
|
<point>60,-4000</point>
|
|
<point>100,0</point>
|
|
</reference>
|
|
</volumes>
|