audio: update audio volume table

This patch Updates the volume_listener coverage to fix the low volume
index (volume key 1~10) can’t be mapped to volume listener index.  In
current setting, only stream volume larger than -8.6db will be applied
with volume listener tuning. This patch also updates Android volume
curve of SWB and VoIP.

Bug: 62825740
Test: audio playback
Change-Id: Ic76b7240db09983e5eb56441a0da4ea021cb3655
Signed-off-by: David Lin <dtwlin@google.com>
This commit is contained in:
vincent_tew
2017-06-19 18:28:44 +08:00
committed by David Lin
parent 643f3b53bc
commit 6c1eec7d3d
2 changed files with 7 additions and 4 deletions

View File

@@ -104,7 +104,7 @@
<device name="SND_DEVICE_OUT_SPEAKER_AND_BT_SCO_WB" backend="speaker-and-bt-sco-wb" interface="QUAT_MI2S_RX-and-SLIMBUS_7_RX"/>
</backend_names>
<gain_db_to_level_mapping>
<gain_level_map db="-8.6" level="4"/>
<gain_level_map db="-70" level="4"/>
<gain_level_map db="-6.6" level="3"/>
<gain_level_map db="-4.5" level="2"/>
<gain_level_map db="-2.5" level="1"/>

View File

@@ -36,13 +36,16 @@ volume index from 0 to 100.
<point>100,0</point>
</volume>
<volume stream="AUDIO_STREAM_VOICE_CALL" deviceCategory="DEVICE_CATEGORY_EARPIECE">
<point>0,-2650</point>
<point>86,-400</point>
<point>0,-2500</point>
<point>71,-650</point>
<point>86,-300</point>
<point>100,0</point>
</volume>
<volume stream="AUDIO_STREAM_VOICE_CALL" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA">
<point>0,-2900</point>
<point>86,-400</point>
<point>57,-1400</point>
<point>71,-950</point>
<point>86,-550</point>
<point>100,0</point>
</volume>
<volume stream="AUDIO_STREAM_SYSTEM" deviceCategory="DEVICE_CATEGORY_HEADSET">