mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 12:44:03 +02:00
HID: steelseries: Correct Arctis 9 battery calibration range
Map the Arctis 9 raw battery value over 0x64 (empty) to 0x9a (full) instead of 0x68 to 0x9d. These values match the HeadsetControl project [1] and fit the calibration points from an independent reverse engineering of the battery tray (about 25% at raw 112, 50% at raw 125) [2]. I do not have this headset. The values come from those references and were not measured directly. [1] https://github.com/Sapd/HeadsetControl/blob/master/lib/devices/steelseries_arctis_9.hpp [2] https://magnier.io/reverse-engineering-arctis-9-battery-tray/ Signed-off-by: Sriman Achanta <srimanachanta@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.com>
This commit is contained in:
parent
06529560b0
commit
b8ae111432
|
|
@ -141,7 +141,7 @@ static void steelseries_arctis_9_parse_status(struct steelseries_device *sd,
|
|||
if (data[0] == 0xaa && data[1] == 0x01) {
|
||||
sd->headset_connected = true;
|
||||
sd->battery_charging = (data[4] == 0x01);
|
||||
sd->battery_capacity = steelseries_map_capacity(data[3], 0x68, 0x9d);
|
||||
sd->battery_capacity = steelseries_map_capacity(data[3], 0x64, 0x9a);
|
||||
} else {
|
||||
/* Device off: 0x55 (no status) or 0x03 (stale status). */
|
||||
sd->headset_connected = false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user