From: Rostislav Pehlivanov <atomnuker@gmail.com>
To: jkosina@suse.com
Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org,
Rostislav Pehlivanov <atomnuker@gmail.com>
Subject: [PATCH] HID: hid-sony: Fix DS4 controller reporting rate issues
Date: Tue, 28 Jul 2015 08:38:47 +0100 [thread overview]
Message-ID: <1438069127-24710-1-git-send-email-atomnuker@gmail.com> (raw)
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
next reply other threads:[~2015-07-28 7:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-28 7:38 Rostislav Pehlivanov [this message]
2015-07-29 12:19 ` [PATCH] HID: hid-sony: Fix DS4 controller reporting rate issues Jiri Kosina
2015-07-29 14:28 ` Frank Praznik
2015-07-31 7:38 ` Jiri Kosina
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1438069127-24710-1-git-send-email-atomnuker@gmail.com \
--to=atomnuker@gmail.com \
--cc=jkosina@suse.com \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).