From patchwork Fri Oct 15 19:20:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Cullen X-Patchwork-Id: 12562683 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8A4D5C433EF for ; Fri, 15 Oct 2021 19:21:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5D82F61164 for ; Fri, 15 Oct 2021 19:21:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231890AbhJOTXV (ORCPT ); Fri, 15 Oct 2021 15:23:21 -0400 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:41599 "EHLO wout5-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230009AbhJOTXU (ORCPT ); Fri, 15 Oct 2021 15:23:20 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 0C3CD3200EE0; Fri, 15 Oct 2021 15:21:12 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Fri, 15 Oct 2021 15:21:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= michaelcullen.name; h=from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; s=fm1; bh=yKIcC4xzI9XDV mAZ8fUuEbBQ/xHrwJtenXeum8rv6gc=; b=TYnPCAQ7wxKNhcZ1igYkxHmPE6J6u 5e/6pXsIrjTi6LxQYzvI8otBKV7YxEYzR7Nnky0V7gP0Ep5/gSRbzSkiX4pFnfn2 l0TiXyz1ZXAhV6XLMJM6YnxsfqaHwXWyVcGcyj2IZMoZjPQeJf0eeDyvznYl/vc0 +C3MJ2oLIdPGx9EbBfpTXAUpcbmFO161LaodnJnOBLR1LPWzEpzytIYV7gESYq/6 CoT793mmx0J3zvsIy8binVdisOp0oxjQO6y9REd4Ju0uQstX9WBMxbmT2VkpeHXJ UiWsu/rqdUrhJ42T9pez4lTd6kgvW3HlHVVieXq2YVsOYSDh30jEx4RwQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=yKIcC4xzI9XDVmAZ8 fUuEbBQ/xHrwJtenXeum8rv6gc=; b=GCykoTkxc5Sss8ZCkM4lKcEzgtT5gRdJr 3s9Df0VHjXAq66dOUVYB2xJwqq3Lomi72yC/chy2ww+f4lSrzRT5Tj9GCNSxhyu5 /9AAqzBpdjIKSap9BFYQDYOZYE3+BcCKjJ/H141bWrQFJ7DgD3FgYYATkgovN3+I qwI4JSPPbutgKfiUOU0Rp3Dq5bBgTZV5FU5jYw6DKJVaAbhwGDu3i3KO9v9835Zb 0+YnGMJLYkS9rpvi+PE1GHuW/5e6euwlDrvTgO7cIpMt+YnFJhQXdVh7Au5IesB5 /bTpSMnZBAyAz/jzO6NpO3fBkBL+pHmWXW9SdkoJuANVbpbFDOYFA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvddugedgudefgecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffoggfgsedtkeertd ertddtnecuhfhrohhmpefoihgthhgrvghlucevuhhllhgvnhcuoehmihgthhgrvghlsehm ihgthhgrvghltghulhhlvghnrdhnrghmvgeqnecuggftrfgrthhtvghrnhepffekhfektd ejgfekgfffueejhfffvdfhgfeftdekfeffheehueeuleejteehtdfhnecuvehluhhsthgv rhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesmhhitg hhrggvlhgtuhhllhgvnhdrnhgrmhgv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 15 Oct 2021 15:21:10 -0400 (EDT) From: Michael Cullen To: dmitry.torokhov@gmail.com Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Michael Cullen Subject: [PATCH] Input: xpad - Add support for another USB ID of Nacon GC-100 Date: Fri, 15 Oct 2021 21:20:51 +0200 Message-Id: <20211015192051.5196-1-michael@michaelcullen.name> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org The Nacon GX100XF is already mapped, but it seems there is a Nacon GC-100 (identified as NC5136Wht PCGC-100WHITE though I believe other colours exist) with a different USB ID when in XInput mode. Signed-off-by: Michael Cullen --- 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 d69d7657ab12..dc74c355012b 100644 --- a/drivers/input/joystick/xpad.c +++ b/drivers/input/joystick/xpad.c @@ -332,6 +332,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 }, + { 0x3285, 0x0607, "Nacon GC-100", 0, XTYPE_XBOX360 }, { 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 } @@ -449,6 +450,7 @@ static const struct usb_device_id xpad_table[] = { XPAD_XBOXONE_VENDOR(0x24c6), /* PowerA Controllers */ XPAD_XBOXONE_VENDOR(0x2e24), /* Hyperkin Duke X-Box One pad */ XPAD_XBOX360_VENDOR(0x2f24), /* GameSir Controllers */ + XPAD_XBOX360_VENDOR(0x3285), /* Nacon GC-100 */ { } };