All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Add Razer Onza Tournament Edition to xpad device list
       [not found] <CAK0ehjE6E-4UOBKMDhQtkBD=bvUSgyOmNd-4g+dmTSU4BnpJog@mail.gmail.com>
@ 2012-07-08 18:51 ` K900
  2012-07-10 18:52   ` Dmitry Torokhov
  0 siblings, 1 reply; 2+ messages in thread
From: K900 @ 2012-07-08 18:51 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 711 bytes --]

This adds support for Razer Onza Tournament Edition (
http://store.razerzone.com/store/razerusa/en_US/pd/productID.218524000/categoryId.54297600
) controller to the xpad module. It's very simple, I just added
another entry to the device list, everything works as it should. I'm
not sure if this works with the original Onza (
http://store.razerzone.com/store/razerusa/en_US/pd/productID.218523900/categoryId.54297600
) because I don't have one and it might have a different ID even
though it's pretty much the same hardware.

P.S. To anyone replying to this message (if ever): please CC me,
because I'm too scared to subscribe to linux-kernel for now >.<
P.P.S. Resending because GMail used HTML the first time

[-- Attachment #2: onza.diff --]
[-- Type: application/octet-stream, Size: 1068 bytes --]

diff --git a/drivers/input/joystick/xpad.c b/drivers/input/joystick/xpad.c
index ee16fb6..48ea87d 100644
--- a/drivers/input/joystick/xpad.c
+++ b/drivers/input/joystick/xpad.c
@@ -164,6 +164,7 @@ static const struct xpad_device {
 	{ 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 },
+    { 0x1689, 0xfd00, "Razer Onza Tournament Edition", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX360 },
 	{ 0xffff, 0xffff, "Chinese-made Xbox Controller", 0, XTYPE_XBOX },
 	{ 0x0000, 0x0000, "Generic X-Box pad", 0, XTYPE_UNKNOWN }
 };
@@ -244,6 +245,7 @@ static struct usb_device_id xpad_table [] = {
 	XPAD_XBOX360_VENDOR(0x146b),		/* BigBen Interactive Controllers */
 	XPAD_XBOX360_VENDOR(0x1bad),		/* Harminix Rock Band Guitar and Drums */
 	XPAD_XBOX360_VENDOR(0x0f0d),            /* Hori Controllers */
+    XPAD_XBOX360_VENDOR(0x1689),        /* Razer Onza */
 	{ }
 };
 

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Add Razer Onza Tournament Edition to xpad device list
  2012-07-08 18:51 ` [PATCH] Add Razer Onza Tournament Edition to xpad device list K900
@ 2012-07-10 18:52   ` Dmitry Torokhov
  0 siblings, 0 replies; 2+ messages in thread
From: Dmitry Torokhov @ 2012-07-10 18:52 UTC (permalink / raw)
  To: K900; +Cc: linux-kernel

Hi,

On Sun, Jul 08, 2012 at 10:51:12PM +0400, K900 wrote:
> This adds support for Razer Onza Tournament Edition (
> http://store.razerzone.com/store/razerusa/en_US/pd/productID.218524000/categoryId.54297600
> ) controller to the xpad module. It's very simple, I just added
> another entry to the device list, everything works as it should. I'm
> not sure if this works with the original Onza (
> http://store.razerzone.com/store/razerusa/en_US/pd/productID.218523900/categoryId.54297600
> ) because I don't have one and it might have a different ID even
> though it's pretty much the same hardware.
> 
> P.S. To anyone replying to this message (if ever): please CC me,
> because I'm too scared to subscribe to linux-kernel for now >.<
> P.P.S. Resending because GMail used HTML the first time

Could you please resend me the patch with your "Signed-off-by: " (see
Documentation/SubmittingPatches, esp. item 12) and I will make sure it
gets applied.

Thanks!

-- 
Dmitry

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-07-10 18:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CAK0ehjE6E-4UOBKMDhQtkBD=bvUSgyOmNd-4g+dmTSU4BnpJog@mail.gmail.com>
2012-07-08 18:51 ` [PATCH] Add Razer Onza Tournament Edition to xpad device list K900
2012-07-10 18:52   ` Dmitry Torokhov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.