Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1193828
| From | Rostislav Pehlivanov <atomnuker@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] HID: hid-sony: Fix DS4 controller reporting rate issues |
| Date | 2015-07-28 09:40 +0200 |
| Message-ID | <pR7Eu-2w2-21@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
This commit removes the cap on the DualShock 4 controller reporting
rate when connected using Bluetooth. The previous value of '0xB0'
capped the rate to only 20.83 Hz which many userspace utilities
mistook as a sign of a bad signal. Since a 'B' and an '8' can look
similar it's possible that someone mistook the one for another.
The new value of '0x80' enables the full 1000 Hz peak reporting
rate that the controller is capable of.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
---
drivers/hid/hid-sony.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hid/hid-sony.c b/drivers/hid/hid-sony.c
index ed2f008..3a6b6a9 100644
--- a/drivers/hid/hid-sony.c
+++ b/drivers/hid/hid-sony.c
@@ -1836,7 +1836,7 @@ static void dualshock4_state_worker(struct work_struct *work)
} else {
memset(buf, 0, DS4_REPORT_0x11_SIZE);
buf[0] = 0x11;
- buf[1] = 0xB0;
+ buf[1] = 0x80;
buf[3] = 0x0F;
offset = 6;
}
--
2.5.0.rc2.392.g76e840b
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH] HID: hid-sony: Fix DS4 controller reporting rate issues Rostislav Pehlivanov <atomnuker@gmail.com> - 2015-07-28 09:40 +0200 Re: [PATCH] HID: hid-sony: Fix DS4 controller reporting rate issues Frank Praznik <frank.praznik@gmail.com> - 2015-07-29 16:30 +0200
csiph-web