From patchwork Sun Apr 10 15:57:16 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kenney Phillis X-Patchwork-Id: 696671 X-Patchwork-Delegate: jikos@jikos.cz Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p3AFvRsp021670 for ; Sun, 10 Apr 2011 15:57:30 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754630Ab1DJP53 (ORCPT ); Sun, 10 Apr 2011 11:57:29 -0400 Received: from mail-gx0-f174.google.com ([209.85.161.174]:59508 "EHLO mail-gx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754470Ab1DJP52 (ORCPT ); Sun, 10 Apr 2011 11:57:28 -0400 Received: by mail-gx0-f174.google.com with SMTP id 21so1906390gxk.19 for ; Sun, 10 Apr 2011 08:57:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:subject:from:to:content-type:date:message-id :mime-version:x-mailer:content-transfer-encoding; bh=KBvRRMcxEi3DQtJUF3AtexEMAjsJq+/DBn8Xx7jrJrg=; b=ZXq3SoBEgxmYsay5J2lIsxRNvBKUutN3tPDk20EOjDDfAIrCMBI0muHIz6qPgxOyEb CXLq0MPFsQS2mY3b2JEkK8482sXlNsCI1xWilJdDDnFbETup9Rkwtc/y7dcBZhTj1o7Y 4+B9pbcc6diyYf3RjTxAhMMJncMUrLekGPV1M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:content-type:date:message-id:mime-version:x-mailer :content-transfer-encoding; b=SwXVNXExUAPdwqarbNalVxxcKcRBHNgU79D8ujafgHRgKH7+DigxzBbKn+/Mx9hKeW phUDZ+qpsdB2IvNWbywz/ZbjmbR23zPYsOH/DBrACxVNX9b1Ku9lE9su8otRFpsHdnqU aHAfISTQdb6l9CebJ7Nbt8GUj6ZWqr355tROc= Received: by 10.101.196.20 with SMTP id y20mr2784630anp.162.1302451048647; Sun, 10 Apr 2011 08:57:28 -0700 (PDT) Received: from [192.168.3.127] (pool-71-96-228-228.dfw.dsl-w.verizon.net [71.96.228.228]) by mx.google.com with ESMTPS id e24sm4082462ana.2.2011.04.10.08.57.27 (version=SSLv3 cipher=OTHER); Sun, 10 Apr 2011 08:57:27 -0700 (PDT) Subject: [PATCH] HID: add USB ID for Jess Tech USB 4-Axis 12-Button Gamepad in hid-pl From: Kenney Phillis To: linux-input@vger.kernel.org Date: Sun, 10 Apr 2011 10:57:16 -0500 Message-ID: <1302451036.21823.40.camel@dandel-desktop> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Sun, 10 Apr 2011 15:57:30 +0000 (UTC) Add support for 0f30:0107 device into hid-pl driver. This device has the values in separate fields and resembles devices handled by hid-zpff. Signed-off-by: Kenney Phillis --- Forgot to sign the last email. The tests for the modifications used the fftest tool. The only effects not working are called 'Dampening Condition', 'Constant Force' and 'Spring Condition'. drivers/hid/hid-core.c | 1 + drivers/hid/hid-ids.h | 3 +++ drivers/hid/hid-pl.c | 5 +++++ 3 files changed, 9 insertions(+), 0 deletions(-) }; MODULE_DEVICE_TABLE(hid, pl_devices); diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c index d7cb7aa..8e4dcd3 100644 --- a/drivers/hid/hid-core.c +++ b/drivers/hid/hid-core.c @@ -1754,6 +1754,7 @@ static const struct hid_device_id hid_ignore_list[] = { { HID_USB_DEVICE(USB_VENDOR_ID_GTCO, USB_DEVICE_ID_GTCO_1007) }, { HID_USB_DEVICE(USB_VENDOR_ID_IMATION, USB_DEVICE_ID_DISC_STAKKA) }, { HID_USB_DEVICE(USB_VENDOR_ID_JESS, USB_DEVICE_ID_JESS_YUREX) }, + { HID_USB_DEVICE(USB_VENDOR_ID_JESSTECH, USB_DEVICE_ID_JESSTECH_GAMEPAD) }, { HID_USB_DEVICE(USB_VENDOR_ID_KBGEAR, USB_DEVICE_ID_KBGEAR_JAMSTUDIO) }, { HID_USB_DEVICE(USB_VENDOR_ID_KWORLD, USB_DEVICE_ID_KWORLD_RADIO_FM700) }, { HID_USB_DEVICE(USB_VENDOR_ID_KYE, USB_DEVICE_ID_KYE_GPEN_560) }, diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h index c0bda19..1ce39a0 100644 --- a/drivers/hid/hid-ids.h +++ b/drivers/hid/hid-ids.h @@ -345,6 +345,9 @@ #define USB_VENDOR_ID_JESS 0x0c45 #define USB_DEVICE_ID_JESS_YUREX 0x1010 +#define USB_VENDOR_ID_JESSTECH 0x0f30 +#define USB_DEVICE_ID_JESSTECH_GAMEPAD 0x0107 + #define USB_VENDOR_ID_KBGEAR 0x084e #define USB_DEVICE_ID_KBGEAR_JAMSTUDIO 0x1001 diff --git a/drivers/hid/hid-pl.c b/drivers/hid/hid-pl.c index 46d117d..922ce47 100644 --- a/drivers/hid/hid-pl.c +++ b/drivers/hid/hid-pl.c @@ -17,6 +17,9 @@ * 187c:0600 "Alienware Dual Compatible Game Pad" * - USB/PS2 Game Controller with Alienware branding. * + * 0f30:0107 "Jess Tech USB 4-Axis 12-Button Gamepad" + * - tested with the Game Elements Cobra Recoil: GGE908 + * * Copyright (c) 2007, 2009 Anssi Hannula */ @@ -211,6 +214,8 @@ static const struct hid_device_id pl_devices[] = { { HID_USB_DEVICE(USB_VENDOR_ID_GAMERON, USB_DEVICE_ID_GAMERON_DUAL_PCS_ADAPTOR), .driver_data = 1 }, /* Twin USB Joystick */ { HID_USB_DEVICE(USB_VENDOR_ID_GREENASIA, 0x0003), }, + { HID_USB_DEVICE(USB_VENDOR_ID_JESSTECH, USB_DEVICE_ID_JESSTECH_GAMEPAD) }, + /* Jess tech USB 4-Axis 12-Button Gamepad */ { }