mirror of
https://github.com/Evolution-X-Devices/device_google_redfin
synced 2026-02-01 11:26:33 +00:00
thermal: add thermal sensors for panel audio throttling
Add panel-audio-therm for audio hal to detect Tskin temperature and sdm-therm to detect system power. Bug: 143265000 Test: Panel audio throttling can be triggered Change-Id: I5e0d659deca4d50d7a142b2efbf030c284de8784
This commit is contained in:
@@ -31,3 +31,7 @@ on property:sys.retaildemo.enabled=1
|
||||
|
||||
on property:sys.retaildemo.enabled=0
|
||||
write /sys/class/thermal/cdev-by-name/dc_icl/cur_state 0
|
||||
|
||||
on late-init
|
||||
chown system system /sys/devices/virtual/thermal/tz-by-name/panel-audio-therm/trip_point_0_temp
|
||||
chown system system /sys/devices/virtual/thermal/tz-by-name/panel-audio-therm/trip_point_0_hyst
|
||||
|
||||
@@ -244,6 +244,55 @@
|
||||
"VrThreshold":"NAN",
|
||||
"Multiplier":0.001,
|
||||
"Monitor":true
|
||||
},
|
||||
{
|
||||
"Name":"panel-audio-therm",
|
||||
"Type":"UNKNOWN",
|
||||
"HotThreshold":[
|
||||
"NAN",
|
||||
"41.0",
|
||||
"NAN",
|
||||
"NAN",
|
||||
"NAN",
|
||||
"NAN",
|
||||
"NAN"
|
||||
],
|
||||
"HotHysteresis":[
|
||||
0.0,
|
||||
1.9,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"VrThreshold":"NAN",
|
||||
"Multiplier":0.001,
|
||||
"Monitor":true
|
||||
},
|
||||
{
|
||||
"Name":"sdm-therm",
|
||||
"Type":"UNKNOWN",
|
||||
"HotThreshold":[
|
||||
"NAN",
|
||||
"NAN",
|
||||
"NAN",
|
||||
"NAN",
|
||||
"NAN",
|
||||
"NAN",
|
||||
"NAN"
|
||||
],
|
||||
"HotHysteresis":[
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"VrThreshold":"NAN",
|
||||
"Multiplier":0.001
|
||||
}
|
||||
],
|
||||
"CoolingDevices":[
|
||||
|
||||
Reference in New Issue
Block a user