Skip to content

Commit c4425c8

Browse files
KontrabantJiri Kosina
authored andcommitted
HID: sony: Update copyright and add Dualshock 4 rate control note
Update the copyright notice with the current year and add a note about values for controlling the Dualshock 4 reporting rate. Processing reports at the default full rate of 1000hz can be too demanding for some low-power embedded processors so noting alternate values for people working with this hardware can be useful. Thanks to Rostislav Pehlivanov for finding these values. Signed-off-by: Frank Praznik <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 2a24293 commit c4425c8

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

drivers/hid/hid-sony.c

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Copyright (c) 2012 David Dillow <[email protected]>
99
* Copyright (c) 2006-2013 Jiri Kosina
1010
* Copyright (c) 2013 Colin Leitner <[email protected]>
11-
* Copyright (c) 2014 Frank Praznik <[email protected]>
11+
* Copyright (c) 2014-2016 Frank Praznik <[email protected]>
1212
*/
1313

1414
/*
@@ -1879,6 +1879,17 @@ static void dualshock4_send_output_report(struct sony_sc *sc)
18791879
u8 *buf = sc->output_report_dmabuf;
18801880
int offset;
18811881

1882+
/*
1883+
* NOTE: The buf[1] field of the Bluetooth report controls
1884+
* the Dualshock 4 reporting rate.
1885+
*
1886+
* Known values include:
1887+
*
1888+
* 0x80 - 1000hz (full speed)
1889+
* 0xA0 - 31hz
1890+
* 0xB0 - 20hz
1891+
* 0xD0 - 66hz
1892+
*/
18821893
if (sc->quirks & DUALSHOCK4_CONTROLLER_USB) {
18831894
memset(buf, 0, DS4_REPORT_0x05_SIZE);
18841895
buf[0] = 0x05;

0 commit comments

Comments
 (0)