diff options
author | Roderick Colenbrander <roderick.colenbrander@sony.com> | 2017-03-24 15:17:48 -0700 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2017-04-06 14:41:17 +0200 |
commit | 5caceb0695d0498b8c931cbc3cdafd99bd37b8ae (patch) | |
tree | 89373a47a4732450bc78df5efc50c747ad05aa4a /drivers/hid | |
parent | 39254a13d64bc69b83f4097dacc4117d7b865118 (diff) |
HID: sony: Set proper bit flags on DS4 output report
Only set bit flags for the portions of the DS4 output report
for which we have data.
Signed-off-by: Roderick Colenbrander <roderick.colenbrander@sony.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid')
-rw-r--r-- | drivers/hid/hid-sony.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hid/hid-sony.c b/drivers/hid/hid-sony.c index 9863adf768ac..107aae9627bc 100644 --- a/drivers/hid/hid-sony.c +++ b/drivers/hid/hid-sony.c @@ -1998,13 +1998,13 @@ static void dualshock4_send_output_report(struct sony_sc *sc) if (sc->quirks & (DUALSHOCK4_CONTROLLER_USB | DUALSHOCK4_DONGLE)) { memset(buf, 0, DS4_OUTPUT_REPORT_0x05_SIZE); buf[0] = 0x05; - buf[1] = 0xFF; + buf[1] = 0x07; /* blink + LEDs + motor */ offset = 4; } else { memset(buf, 0, DS4_OUTPUT_REPORT_0x11_SIZE); buf[0] = 0x11; buf[1] = 0xC0; /* HID + CRC */ - buf[3] = 0x0F; + buf[3] = 0x07; /* blink + LEDs + motor */ offset = 6; } |