From patchwork Wed May 23 16:17:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shelby Jueden X-Patchwork-Id: 10421897 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 C1CD960327 for ; Wed, 23 May 2018 16:17:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B01F328D70 for ; Wed, 23 May 2018 16:17:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A4AFB28D88; Wed, 23 May 2018 16:17:49 +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=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, 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 20F9A28D70 for ; Wed, 23 May 2018 16:17:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754589AbeEWQRr (ORCPT ); Wed, 23 May 2018 12:17:47 -0400 Received: from mail-pl0-f67.google.com ([209.85.160.67]:34751 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754629AbeEWQRn (ORCPT ); Wed, 23 May 2018 12:17:43 -0400 Received: by mail-pl0-f67.google.com with SMTP id ay10-v6so13335237plb.1 for ; Wed, 23 May 2018 09:17:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jueden-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=BeNyr3dtDxhXMDTO4SccS8NgEPcBwqVR6WqEod6Dz8E=; b=Qa0N1aniHPA4xm8mYD2XpcADpuczK4QUktEIzTrpmFPYuVBxo88gvITcZHCaAH3F0S 4nVs8+zop1e6VXHiB56dz64AiQ9wJa2KB9PDxqDVZiON3tpeeeCi/L/ck2T4GvHsWHm+ JdGaS3rv51xqTaJI0+LHUIZY8lzoWhopxNpCj3ctvAfDvhFcMUlB0MWb7xiKDu8pBh11 hLjaLIGEr/3UQBfxvO8gQN5puqBh+HSuwkxDWu3xu++HUtNSzZCXFHnMVWiWqfBQYZPp 1NalCUl8ynaKRb7EIZgkvTBBh4BRzmqDyDN4HKyJX76DRHVnoL6foaN4ma0MGEpAUVr3 /T9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=BeNyr3dtDxhXMDTO4SccS8NgEPcBwqVR6WqEod6Dz8E=; b=LG/GywnuzRm/9MJ1sHY6yiEZDcri9aHuALeqzzPHXo7jzRh80bNxYZFR/4SYLSrrmh 90TULGCqE4xSIUvZkerE/Mdl/vTxxGtS4TSxRpQRTKrsKCmqWlUHaHTbxsUwXIvFs8Kx YDL62RrEgqV+548rFeKaKaM9tS+EhNxIvzOd9yxanYycuo0zqOpeWQW4whBr9tqhZGCK 35n4iQxz4h7+oCoHk5Ih4iCz036f7pU9bb0boAPOvpw+DFSMY0daKRd5DECEY7DHPadz MYW+lUiCTlqawT4HNSscJJUGxIJz5JmSNwKkaqzvYHayh83CTBVdOJh6YdMJJ3j5uTYn oJXw== X-Gm-Message-State: ALKqPweZc+BQAgnggHb6k2fM8bcQg+vSby0/CVLWf09RGtWdxDqT4jGD IqRrP/UOzQgERhMs5+Sn0ziINGzT X-Google-Smtp-Source: AB8JxZpfZWq+JfeT9HKHv4Fg8TCBraSTWpcQ0K3fEMFShSXl1j6ZH96w5IgyGVWWVLsQLnCXcTy90g== X-Received: by 2002:a17:902:5382:: with SMTP id c2-v6mr3618593pli.335.1527092262401; Wed, 23 May 2018 09:17:42 -0700 (PDT) Received: from S-D-KUBUNTU (ip70-176-172-201.ph.ph.cox.net. [70.176.172.201]) by smtp.gmail.com with ESMTPSA id q207-v6sm29365825pgq.9.2018.05.23.09.17.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 May 2018 09:17:41 -0700 (PDT) Date: Wed, 23 May 2018 09:17:40 -0700 From: Shelby Jueden To: dmitry.torokhov@gmail.com Cc: linux-input@vger.kernel.org Subject: [PATCH] Input: xpad - add USB IDs for Hyperkin Duke Message-ID: <20180523161740.zi6zylh2ki67keca@S-D-KUBUNTU> MIME-Version: 1.0 Content-Disposition: inline User-Agent: NeoMutt/20170609 (1.8.3) 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 Add the USB ID for the Hyperkin duke. There is an issue where the controller resets, which causes a rumble and to display the animation, after ~40 seconds if no application is currently reading from it. As an example, running jstest, steam, or any game stops this. Once the application begins reading from it, a different reset happens that displays the animation, does not rumble, and stops the reset loop. But once the application is closed the issue starts again. Signed-off-by: Shelby Jueden --- drivers/input/joystick/xpad.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/input/joystick/xpad.c b/drivers/input/joystick/xpad.c index 06e9650b3b30..04d21cfe1de5 100644 --- a/drivers/input/joystick/xpad.c +++ b/drivers/input/joystick/xpad.c @@ -326,6 +326,7 @@ static const struct xpad_device { { 0x24c6, 0x5b03, "Thrustmaster Ferrari 458 Racing Wheel", 0, XTYPE_XBOX360 }, { 0x24c6, 0x5d04, "Razer Sabertooth", 0, XTYPE_XBOX360 }, { 0x24c6, 0xfafe, "Rock Candy Gamepad for Xbox 360", 0, XTYPE_XBOX360 }, + { 0x2e24, 0x0652, "Hyperkin Duke X-Box One pad", 0, XTYPE_XBOXONE }, { 0x3767, 0x0101, "Fanatec Speedster 3 Forceshock Wheel", 0, XTYPE_XBOX }, { 0xffff, 0xffff, "Chinese-made Xbox Controller", 0, XTYPE_XBOX }, { 0x0000, 0x0000, "Generic X-Box pad", 0, XTYPE_UNKNOWN } @@ -435,6 +436,7 @@ static const struct usb_device_id xpad_table[] = { XPAD_XBOX360_VENDOR(0x1bad), /* Harminix Rock Band Guitar and Drums */ XPAD_XBOX360_VENDOR(0x24c6), /* PowerA Controllers */ XPAD_XBOXONE_VENDOR(0x24c6), /* PowerA Controllers */ + XPAD_XBOXONE_VENDOR(0x2e24), /* Hyperkin Duke X-Box One pad */ { } };