audio: Phase in audio_policy_volume.xml in TG4

I put TG4  audio_policy_volume.xml in the attached file.

1. This table all number follow AK3 parameters.
Just use TG4 format.
It will be a good start for TG4 to align AK3.
2. This  audio_policy_volume.xml internal name: audio_policy_volumes(TG4_EVT_1).xml

Files from the latest attachment on b/340373394

Bug: 340373394
Test: verified by supery@
Change-Id: Ifd788a00964117b6eee3289cf136c319efd0eaad
This commit is contained in:
David Li 2024-05-15 19:51:43 +08:00
parent 76ddc30e96
commit ea61fc0c9b

View file

@ -55,12 +55,10 @@ sync from ag/26090783, need remove before submit.
<point>100,-1800</point> <point>100,-1800</point>
</volume> </volume>
<volume stream="AUDIO_STREAM_SYSTEM" deviceCategory="DEVICE_CATEGORY_SPEAKER"> <volume stream="AUDIO_STREAM_SYSTEM" deviceCategory="DEVICE_CATEGORY_SPEAKER">
<point>1,-4500</point> <point>1,-5000</point>
<point>29,-3400</point> <point>33,-3500</point>
<point>57,-2250</point> <point>66,-2400</point>
<point>71,-1900</point> <point>100,-1600</point>
<point>86,-1530</point>
<point>100,-1100</point>
</volume> </volume>
<volume stream="AUDIO_STREAM_SYSTEM" deviceCategory="DEVICE_CATEGORY_EARPIECE" <volume stream="AUDIO_STREAM_SYSTEM" deviceCategory="DEVICE_CATEGORY_EARPIECE"
ref="DEFAULT_SYSTEM_VOLUME_CURVE"/> ref="DEFAULT_SYSTEM_VOLUME_CURVE"/>
@ -72,11 +70,8 @@ sync from ag/26090783, need remove before submit.
ref="DEFAULT_DEVICE_CATEGORY_HEADSET_VOLUME_CURVE"/> ref="DEFAULT_DEVICE_CATEGORY_HEADSET_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_RING" deviceCategory="DEVICE_CATEGORY_SPEAKER"> <volume stream="AUDIO_STREAM_RING" deviceCategory="DEVICE_CATEGORY_SPEAKER">
<point>1,-4000</point> <point>1,-4000</point>
<point>29,-2950</point> <point>33,-2400</point>
<point>43,-2350</point> <point>66,-1200</point>
<point>57,-1850</point>
<point>71,-1400</point>
<point>86,-700</point>
<point>100,0</point> <point>100,0</point>
</volume> </volume>
<volume stream="AUDIO_STREAM_RING" deviceCategory="DEVICE_CATEGORY_EARPIECE" <volume stream="AUDIO_STREAM_RING" deviceCategory="DEVICE_CATEGORY_EARPIECE"
@ -88,31 +83,30 @@ sync from ag/26090783, need remove before submit.
<volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_HEADSET" <volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_HEADSET"
ref="DEFAULT_MEDIA_VOLUME_CURVE"/> ref="DEFAULT_MEDIA_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_SPEAKER"> <volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_SPEAKER">
<point>1,-9000</point> <point>1,-6589</point>
<point>4,-6370</point> <point>8,-5971</point>
<point>8,-6105</point> <point>12,-5619</point>
<point>12,-5810</point> <point>16,-5212</point>
<point>16,-5520</point> <point>20,-4833</point>
<point>20,-5220</point> <point>24,-4434</point>
<point>24,-4870</point> <point>28,-4141</point>
<point>28,-4490</point> <point>32,-3856</point>
<point>32,-4278</point> <point>36,-3611</point>
<point>36,-4027</point> <point>40,-3382</point>
<point>40,-3770</point> <point>44,-3143</point>
<point>44,-3560</point> <point>48,-2921</point>
<point>48,-3300</point> <point>52,-2695</point>
<point>52,-3080</point> <point>56,-2497</point>
<point>56,-2800</point> <point>60,-2308</point>
<point>60,-2620</point> <point>64,-2109</point>
<point>64,-2350</point> <point>68,-1893</point>
<point>68,-2200</point> <point>72,-1706</point>
<point>72,-2100</point> <point>76,-1474</point>
<point>76,-1930</point> <point>80,-1224</point>
<point>80,-1700</point> <point>84,-1000</point>
<point>84,-1460</point> <point>88,-786</point>
<point>88,-1190</point> <point>92,-581</point>
<point>92,-850</point> <point>96,-275</point>
<point>96,-510</point>
<point>100,0</point> <point>100,0</point>
</volume> </volume>
<volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_EARPIECE" <volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_EARPIECE"
@ -124,11 +118,9 @@ sync from ag/26090783, need remove before submit.
<volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_HEADSET" <volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_HEADSET"
ref="DEFAULT_NON_MUTABLE_HEADSET_VOLUME_CURVE"/> ref="DEFAULT_NON_MUTABLE_HEADSET_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_SPEAKER"> <volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_SPEAKER">
<point>0,-5600</point> <point>0,-4000</point>
<point>29,-3520</point> <point>33,-2400</point>
<point>57,-1500</point> <point>66,-1200</point>
<point>71,-1150</point>
<point>86,-500</point>
<point>100,0</point> <point>100,0</point>
</volume> </volume>
<volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_EARPIECE" <volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_EARPIECE"
@ -140,11 +132,10 @@ sync from ag/26090783, need remove before submit.
<volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_HEADSET" <volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_HEADSET"
ref="DEFAULT_DEVICE_CATEGORY_HEADSET_VOLUME_CURVE"/> ref="DEFAULT_DEVICE_CATEGORY_HEADSET_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_SPEAKER"> <volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_SPEAKER">
<point>1,-4500</point> <point>1,-4800</point>
<point>29,-3800</point> <point>33,-2400</point>
<point>71,-1850</point> <point>66,-1200</point>
<point>86,-1000</point> <point>100,0</point>
<point>100,-500</point>
</volume> </volume>
<volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_EARPIECE" <volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_EARPIECE"
ref="DEFAULT_DEVICE_CATEGORY_EARPIECE_VOLUME_CURVE"/> ref="DEFAULT_DEVICE_CATEGORY_EARPIECE_VOLUME_CURVE"/>
@ -181,12 +172,10 @@ sync from ag/26090783, need remove before submit.
<point>100,-1800</point> <point>100,-1800</point>
</volume> </volume>
<volume stream="AUDIO_STREAM_ENFORCED_AUDIBLE" deviceCategory="DEVICE_CATEGORY_SPEAKER"> <volume stream="AUDIO_STREAM_ENFORCED_AUDIBLE" deviceCategory="DEVICE_CATEGORY_SPEAKER">
<point>1,-4500</point> <point>1,-5000</point>
<point>29,-3400</point> <point>33,-3500</point>
<point>57,-2250</point> <point>66,-2400</point>
<point>71,-1900</point> <point>100,-1600</point>
<point>86,-1530</point>
<point>100,-1100</point>
</volume> </volume>
<volume stream="AUDIO_STREAM_ENFORCED_AUDIBLE" deviceCategory="DEVICE_CATEGORY_EARPIECE" <volume stream="AUDIO_STREAM_ENFORCED_AUDIBLE" deviceCategory="DEVICE_CATEGORY_EARPIECE"
ref="DEFAULT_SYSTEM_VOLUME_CURVE"/> ref="DEFAULT_SYSTEM_VOLUME_CURVE"/>
@ -201,12 +190,10 @@ sync from ag/26090783, need remove before submit.
<point>100,-1800</point> <point>100,-1800</point>
</volume> </volume>
<volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_SPEAKER"> <volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_SPEAKER">
<point>1,-5700</point> <point>1,-6000</point>
<point>29,-4230</point> <point>33,-3000</point>
<point>43,-3300</point> <point>66,-2200</point>
<point>57,-3100</point> <point>100,-1600</point>
<point>71,-2500</point>
<point>100,-1400</point>
</volume> </volume>
<volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_EARPIECE" <volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_EARPIECE"
ref="DEFAULT_SYSTEM_VOLUME_CURVE"/> ref="DEFAULT_SYSTEM_VOLUME_CURVE"/>