From patchwork Tue May 31 06:36:39 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Magnus_H=C3=83=C2=B6rlin?= X-Patchwork-Id: 831422 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.3) with ESMTP id p4V6ajOM013172 for ; Tue, 31 May 2011 06:36:45 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752828Ab1EaGgo (ORCPT ); Tue, 31 May 2011 02:36:44 -0400 Received: from mail-ey0-f174.google.com ([209.85.215.174]:49496 "EHLO mail-ey0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751037Ab1EaGgn (ORCPT ); Tue, 31 May 2011 02:36:43 -0400 Received: by eyx24 with SMTP id 24so1548039eyx.19 for ; Mon, 30 May 2011 23:36:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:subject:from:to:cc:content-type:date :message-id:mime-version:x-mailer; bh=HQDtoIsaWKMLuifZ5ebZpT//RDzvrM3tOUkRE5aseW4=; b=JAEiby85hxSBNAVovm1hzJtrTmSSRP448BgfKSf0wuaZ0MOtsNu5h+lyBLl+D/G5uA zoKRvRr/A67v+yuVQ36TFMn/W0TVqyfzir4cNVrUR91ZJkXXoKOGnwr571Mktl4POAM8 dNCoEfsi5bdQ60qnuj/JzCP3tVaWxneUU65qE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:subject:from:to:cc:content-type:date:message-id:mime-version :x-mailer; b=GvY9zAQaCj/78aqK29yYSzQbnnWhN1FGqI48ObSOyCiVznQcnQOpJqxeKb1ocFzNkT tLKSvY/BVyjeID6Sk6bMcXvE8YNFP081BDclK5simqiU5Q5DvcmNdP+Q73N4nZp97MNk kIZMiZ7shXDGq9h8BRPMQkOQzkATtH75xtHqU= Received: by 10.213.103.148 with SMTP id k20mr1143635ebo.19.1306823802160; Mon, 30 May 2011 23:36:42 -0700 (PDT) Received: from ?IPv6:::1? (78.218.95.91.static.ter-s.siw.siwnet.net [91.95.218.78]) by mx.google.com with ESMTPS id x46sm3658489eea.10.2011.05.30.23.36.41 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 30 May 2011 23:36:41 -0700 (PDT) Subject: [PATCH] xpad: Add support for two more dance pads and one more guitar From: Magnus =?ISO-8859-1?Q?H=F6rlin?= To: linux-input@vger.kernel.org Cc: chf.fritz@googlemail.com Date: Tue, 31 May 2011 08:36:39 +0200 Message-ID: <1306823799.8840.8.camel@ubuntu> Mime-Version: 1.0 X-Mailer: Evolution 2.32.2 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 (demeter2.kernel.org [140.211.167.43]); Tue, 31 May 2011 06:36:45 +0000 (UTC) Hi. Please find attached a patch that adds support for some xbox 360 stuff I bought for my kids. /Magnus Hörlin --- linux-2.6.orig/drivers/input/joystick/xpad.c 2011-05-30 17:32:49.548000317 +0200 +++ linux-2.6/drivers/input/joystick/xpad.c 2011-05-20 14:17:00.458068908 +0200 @@ -154,10 +154,13 @@ { 0x0f30, 0x8888, "BigBen XBMiniPad Controller", 0, XTYPE_XBOX }, { 0x102c, 0xff0c, "Joytech Wireless Advanced Controller", 0, XTYPE_XBOX }, { 0x12ab, 0x8809, "Xbox DDR dancepad", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX }, + { 0x12ab, 0x0004, "Honey Bee Xbox360 dancepad", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX360 }, + { 0x0e6f, 0x0105, "HSM3 Xbox360 dancepad", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX360 }, { 0x1430, 0x4748, "RedOctane Guitar Hero X-plorer", 0, XTYPE_XBOX360 }, { 0x1430, 0x8888, "TX6500+ Dance Pad (first generation)", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX }, { 0x146b, 0x0601, "BigBen Interactive XBOX 360 Controller", 0, XTYPE_XBOX360 }, { 0x045e, 0x028e, "Microsoft X-Box 360 pad", 0, XTYPE_XBOX360 }, + { 0x1bad, 0x0002, "Harmonix Rock Band Guitar", 0, XTYPE_XBOX360 }, { 0x1bad, 0x0003, "Harmonix Rock Band Drumkit", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX360 }, { 0x0f0d, 0x0016, "Hori Real Arcade Pro.EX", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 }, { 0x0f0d, 0x000d, "Hori Fighting Stick EX2", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 }, @@ -236,9 +239,10 @@ XPAD_XBOX360_VENDOR(0x046d), /* Logitech X-Box 360 style controllers */ XPAD_XBOX360_VENDOR(0x0738), /* Mad Catz X-Box 360 controllers */ XPAD_XBOX360_VENDOR(0x0e6f), /* 0x0e6f X-Box 360 controllers */ + XPAD_XBOX360_VENDOR(0x12ab), /* X-Box 360 dance pads */ XPAD_XBOX360_VENDOR(0x1430), /* RedOctane X-Box 360 controllers */ XPAD_XBOX360_VENDOR(0x146b), /* BigBen Interactive Controllers */ - XPAD_XBOX360_VENDOR(0x1bad), /* Rock Band Drums */ + XPAD_XBOX360_VENDOR(0x1bad), /* Harminix Rock Band Guitar and Drums */ XPAD_XBOX360_VENDOR(0x0f0d), /* Hori Controllers */ { } };