audio: enable playback thermal throttle/ update tables
Bug: 305128022 Test: manual test b/305128022#comment4 Change-Id: I2ebde017efb511f9b899f0df06c6dbd5402fbc8a Signed-off-by: Jasmine Cha <chajasmine@google.com>
This commit is contained in:
parent
6befe70ea4
commit
2571966bbb
4 changed files with 33 additions and 29 deletions
|
@ -244,6 +244,7 @@
|
|||
<soundcard_name name="google,aoc-snd-card" />
|
||||
<features>
|
||||
<feature name="BatteryThrottle=Type:BCL_VOLTAGE,Name:BCL_AUDIO_BAACL,Strategy:MediaSpeakerAndScreenOn"/>
|
||||
<feature name="PlaybackThermalThrottle=PollWaitMs:20000,ThermistorName:VIRTUAL-SKIN-SPEAKER,ThermistorType:SKIN,ThrottlingSeverity:MODERATE"/>
|
||||
</features>
|
||||
|
||||
<cfg_attr>
|
||||
|
@ -299,7 +300,7 @@
|
|||
|
||||
<external_module>
|
||||
<module libname="audio_spk_35l41.so" argu="AcousticShockProtection"/>
|
||||
<module libname="audio_waves_aoc.so" argu="Sink=SPK:1"/>
|
||||
<module libname="audio_waves_aoc.so" argu="Sink=SPK:1 ThermistorsName=VIRTUAL-SKIN-SPEAKER"/>
|
||||
<module libname="audio_cca_aoc.so" argu="UnsupportBands=48000 ExSharedBands=48000 VoIPMode=Dl"/>
|
||||
<module libname="audio_fortemedia_aoc.so" argu="MCPS_TABLE=y DL_CH=y VoIP_DLCHs=SPK:2,USB:2,BT:2 VoIP_Rate=32000 SHARED_MODULE=1130578253"/>
|
||||
<module libname="audio_sounddose_aoc.so"/>
|
||||
|
|
|
@ -81,18 +81,24 @@ volume index from 0 to 100.
|
|||
ref="DEFAULT_MEDIA_VOLUME_CURVE"/>
|
||||
<volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_SPEAKER">
|
||||
<point>1,-6400</point>
|
||||
<point>28,-4010</point>
|
||||
<point>52,-2700</point>
|
||||
<point>56,-2380</point>
|
||||
<point>60,-2210</point>
|
||||
<point>64,-1950</point>
|
||||
<point>68,-1800</point>
|
||||
<point>72,-1550</point>
|
||||
<point>76,-1300</point>
|
||||
<point>80,-1150</point>
|
||||
<point>88,-850</point>
|
||||
<point>92,-650</point>
|
||||
<point>96,-400</point>
|
||||
<point>28,-4100</point>
|
||||
<point>32,-3850</point>
|
||||
<point>36,-3590</point>
|
||||
<point>40,-3310</point>
|
||||
<point>44,-3080</point>
|
||||
<point>48,-2920</point>
|
||||
<point>52,-2730</point>
|
||||
<point>56,-2490</point>
|
||||
<point>60,-2320</point>
|
||||
<point>64,-2120</point>
|
||||
<point>68,-1920</point>
|
||||
<point>72,-1700</point>
|
||||
<point>76,-1510</point>
|
||||
<point>80,-1220</point>
|
||||
<point>84,-940</point>
|
||||
<point>88,-780</point>
|
||||
<point>92,-600</point>
|
||||
<point>96,-340</point>
|
||||
<point>100,0</point>
|
||||
</volume>
|
||||
<volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_EARPIECE"
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
# Putting any value other than 1 would be equivalent to not supported.
|
||||
########################################################################################################
|
||||
[HAL_SUPPORTED_FEATURES]
|
||||
CUSTOM_ACTION_258=1
|
||||
CUSTOM_ACTION_260=1
|
||||
|
||||
########################################################################################################
|
||||
# This defined the options of supported sample rates.
|
||||
|
@ -26,13 +26,10 @@ OST_SPEAKER = 0:12,90:13,180:12,270:0|13
|
|||
# This should be configured by Waves only unless platform vendor is familiar with MPS structure.
|
||||
########################################################################################################
|
||||
[HAL_SUPPORTED_PRESETS]
|
||||
SPEAKER_MUSIC_THROTTLE= OM:1,SM:2,OST:OST_SPEAKER
|
||||
SPEAKER_SAFE_MUSIC_THROTTLE = OM:10,SM:2,OST:OST_SPEAKER
|
||||
SPEAKER_SAFE_CALL_THROTTLE = OM:10,SM:2,OST:OST_SPEAKER
|
||||
SPEAKER_MUSIC_THROTTLE= OM:1,SM:3,OST:OST_SPEAKER
|
||||
SPEAKER_SAFE_MUSIC_THROTTLE = OM:10,SM:3,OST:OST_SPEAKER
|
||||
SPEAKER_MUSIC = OM:1,SM:2,OST:OST_SPEAKER
|
||||
SPEAKER_SAFE_MUSIC = OM:10,SM:2,OST:OST_SPEAKER
|
||||
SPEAKER_SAFE_CALL = OM:10,SM:2,OST:OST_SPEAKER
|
||||
HEADSET_MUSIC = OM:2,SM:2
|
||||
|
||||
########################################################################################################
|
||||
# This defines available CONTROL configurations. Only define the CONTROL if you need it.
|
||||
|
@ -40,9 +37,7 @@ HEADSET_MUSIC = OM:2,SM:2
|
|||
# This can be configured by Waves or platform vendor.
|
||||
########################################################################################################
|
||||
[HAL_SUPPORTED_CONTROLS]
|
||||
SPEAKER_INSTANCE = INSTANCE:1,DEV:0,SR:SR_COMMON,PRESET:SPEAKER_MUSIC|SPEAKER_SAFE_MUSIC|SPEAKER_SAFE_CALL|SPEAKER_MUSIC_THROTTLE|SPEAKER_SAFE_MUSIC_THROTTLE|SPEAKER_SAFE_CALL_THROTTLE
|
||||
A2DP_INSTANCE = INSTANCE:2,DEV:0,SR:SR_COMMON,PRESET:HEADSET_MUSIC
|
||||
USB_HEADPHONE_INSTANCE = INSTANCE:4,DEV:0,SR:SR_COMMON,PRESET:HEADSET_MUSIC
|
||||
SPEAKER_INSTANCE = INSTANCE:1,DEV:0,SR:SR_COMMON,PRESET:SPEAKER_MUSIC|SPEAKER_SAFE_MUSIC|SPEAKER_MUSIC_THROTTLE|SPEAKER_SAFE_MUSIC_THROTTLE
|
||||
|
||||
[COEFS_CONVERTER_SETTING]
|
||||
AlgFxPath=/vendor/lib/libAlgFx_HiFi3z.so
|
||||
|
@ -55,10 +50,12 @@ AlgFxPath64=/vendor/lib64/libAlgFx_HiFi3z.so
|
|||
#AudioFormatSampleSize=4
|
||||
#AudioFormatIncrement=8
|
||||
|
||||
[CUSTOM_ACTION_258]
|
||||
CASE_1=PRIORITY:0,NUMBERS:2:0|1:0,PRESET:SPEAKER_MUSIC
|
||||
CASE_2=PRIORITY:1,NUMBERS:1|2|4194304:2|3|4:0,PRESET:SPEAKER_SAFE_CALL
|
||||
CASE_3=PRIORITY:2,NUMBERS:1|4194304:0|1:0,PRESET:SPEAKER_SAFE_MUSIC
|
||||
CASE_4=PRIORITY:3,NUMBERS:2:0|1:4,PRESET:SPEAKER_MUSIC_THROTTLE
|
||||
CASE_5=PRIORITY:4,NUMBERS:1|2|4194304:2|3|4:4,PRESET:SPEAKER_SAFE_CALL_THROTTLE
|
||||
CASE_6=PRIORITY:5,NUMBERS:1|4194304:0|1:4,PRESET:SPEAKER_SAFE_MUSIC_THROTTLE
|
||||
[CUSTOM_ACTION_260]
|
||||
CASE_1=PRIORITY:0,NUMBERS:2:0|1:1|2,PRESET:SPEAKER_MUSIC
|
||||
CASE_2=PRIORITY:1,NUMBERS:1|2|4194304:2|3|4:1|2,PRESET:SPEAKER_SAFE_MUSIC
|
||||
CASE_3=PRIORITY:2,NUMBERS:1|4194304:0|1:1|2,PRESET:SPEAKER_SAFE_MUSIC
|
||||
CASE_4=PRIORITY:3,NUMBERS:2:0|1:0,PRESET:SPEAKER_MUSIC_THROTTLE
|
||||
CASE_5=PRIORITY:4,NUMBERS:1|2|4194304:2|3|4:0,PRESET:SPEAKER_SAFE_MUSIC_THROTTLE
|
||||
CASE_6=PRIORITY:5,NUMBERS:1|4194304:0|1:0,PRESET:SPEAKER_SAFE_MUSIC_THROTTLE
|
||||
# Action 260 parameters: audio_devices_t, audio_mode_t, throttle_control_state_t
|
||||
# - throttle_control_state_t: 0 - Enabled, 1 - Disabled, 2 - Bypassed
|
||||
|
|
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue