Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753369AbbG2MTu (ORCPT ); Wed, 29 Jul 2015 08:19:50 -0400 Received: from mx2.suse.de ([195.135.220.15]:49773 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752990AbbG2MTs (ORCPT ); Wed, 29 Jul 2015 08:19:48 -0400 Date: Wed, 29 Jul 2015 14:19:47 +0200 (CEST) From: Jiri Kosina X-X-Sender: jkosina@pobox.suse.cz To: Rostislav Pehlivanov cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Frank Praznik Subject: Re: [PATCH] HID: hid-sony: Fix DS4 controller reporting rate issues In-Reply-To: <1438069127-24710-1-git-send-email-atomnuker@gmail.com> Message-ID: References: <1438069127-24710-1-git-send-email-atomnuker@gmail.com> User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1468 Lines: 39 On Tue, 28 Jul 2015, Rostislav Pehlivanov wrote: > 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 > --- > 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; This got added by Frank in commit fdcf105d3d ("HID: sony: Add Dualshock 4 Bluetooth output report formatting"). Adding him to CC to double-check. -- Jiri Kosina SUSE Labs -- 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/