From patchwork Fri Sep 23 00:18:10 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Praznik X-Patchwork-Id: 9347227 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 81148601C2 for ; Fri, 23 Sep 2016 00:18:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7BFE02AD1B for ; Fri, 23 Sep 2016 00:18:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 706A62AD1E; Fri, 23 Sep 2016 00:18:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E19FE2AD1B for ; Fri, 23 Sep 2016 00:18:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S938556AbcIWASk (ORCPT ); Thu, 22 Sep 2016 20:18:40 -0400 Received: from mail-qk0-f193.google.com ([209.85.220.193]:33233 "EHLO mail-qk0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933536AbcIWASj (ORCPT ); Thu, 22 Sep 2016 20:18:39 -0400 Received: by mail-qk0-f193.google.com with SMTP id n66so6240516qkf.0 for ; Thu, 22 Sep 2016 17:18:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=xo3E8ymss2tfAtruLq9x7jfX7EUlLlg6RhgEf7Fi8Wc=; b=bST2oiM4IDVV4h1peqGcBqdyUbNxe5f3IKqw7XkixnudY/bFhN8VO+Y5y6gR6MJkCH v4mU5+y71ExCGesfZRdJHclcRkYgWuC0Yx/YaNfIgRDkMAUluKbrF+MBqhKubLhVesm4 c+Pc2d6F+xuPwhLjO8+KGkvSR3KOjHFguHKSTIjBeqOLtzlaKHZVYOuDAdhpJJfxQ/qg tkRroPXtXZaKF4/MQ/s6ve1IRR2DR1tec2ezPgmRsARx8jYUNTeuFLjD9IDqPkHb9mzQ QEbZhFnRLCbnMWvUM65dosdaxnilZr5urR6ZoLrGX05sDtSLzVgHP/JiQW1BTD0YLY34 OzfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=xo3E8ymss2tfAtruLq9x7jfX7EUlLlg6RhgEf7Fi8Wc=; b=Jss505ESEF91+Sp5VUUmLuiew66C/tTNBl/S99czJoFYFwzM5wSTGpjjK0WqCFemHq 0SOdeZoSPGkmfuCqcrWwFFPruaMwbKgyktMn+hTWxioTTJ4+19oMwiNACt3o+2yYtgRr 3Nw9pV2nofGe0u76LwoEkf9BCqN1XBT/yhZL8HONSILkFlZTDJqKQP6EDn9xiR80AwXL QtgKC1KUMobE+hqxb6Ucew5Dd+e0OPc/27dFYawGWnLr5Fj3d8Q6PIbEslk5a/7tRsrL b5EfCqHRCgG7dyJkhSbtqi0ayyOQJkjL+NX1QfoiQDvOHUxBgAvBHufvn9YbuuiIeTYY mJ1A== X-Gm-Message-State: AA6/9Rlaf7Le/5PrQZVCclqBFJqotg/605jTr1h7XmHdVCbAOqA79TaRx/Oh/7NJCHHRvQ== X-Received: by 10.55.192.28 with SMTP id o28mr4746856qki.312.1474589918238; Thu, 22 Sep 2016 17:18:38 -0700 (PDT) Received: from localhost.localdomain.localdomain (cpe-104-231-99-148.neo.res.rr.com. [104.231.99.148]) by smtp.gmail.com with ESMTPSA id m12sm2375892qtc.8.2016.09.22.17.18.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Sep 2016 17:18:37 -0700 (PDT) From: Frank Praznik To: linux-input@vger.kernel.org Cc: jikos@kernel.org, benjamin.tissoires@redhat.com, Frank Praznik Subject: [PATCH 3/3] hid: sony: Update copyright and add Dualshock 4 rate control note Date: Thu, 22 Sep 2016 20:18:10 -0400 Message-Id: <1474589890-7141-4-git-send-email-frank.praznik@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1474589890-7141-1-git-send-email-frank.praznik@gmail.com> References: <1474589890-7141-1-git-send-email-frank.praznik@gmail.com> Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- drivers/hid/hid-sony.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/drivers/hid/hid-sony.c b/drivers/hid/hid-sony.c index 9b96f95..9bf4e36 100644 --- a/drivers/hid/hid-sony.c +++ b/drivers/hid/hid-sony.c @@ -8,7 +8,7 @@ * Copyright (c) 2012 David Dillow * Copyright (c) 2006-2013 Jiri Kosina * Copyright (c) 2013 Colin Leitner - * Copyright (c) 2014 Frank Praznik + * Copyright (c) 2014-2016 Frank Praznik */ /* @@ -1879,6 +1879,17 @@ static void dualshock4_send_output_report(struct sony_sc *sc) u8 *buf = sc->output_report_dmabuf; int offset; + /* + * NOTE: The buf[1] field of the Bluetooth report controls + * the Dualshock 4 reporting rate. + * + * Known values include: + * + * 0x80 - 1000hz (full speed) + * 0xA0 - 31hz + * 0xB0 - 20hz + * 0xD0 - 66hz + */ if (sc->quirks & DUALSHOCK4_CONTROLLER_USB) { memset(buf, 0, DS4_REPORT_0x05_SIZE); buf[0] = 0x05;