[RESEND] [PATCH] HID: quirks: add MULTI_INPUT quirk for Dragonrise GameCube adapter

Subsystems: hid core layer, the rest

2 messages, 2 authors, 2015-10-06 · open the first message on its own page

[RESEND] [PATCH] HID: quirks: add MULTI_INPUT quirk for Dragonrise GameCube adapter

From: Andrew Rodland <hidden>
Date: 2015-10-06 05:32:22

This device (aka Mayflash GameCube Adapter) has 4 controller ports, and
without the quirk they all become one very large joystock device. With 
the
quirk they're recognized as 4 separate joysticks.

Signed-off-by: Andrew Rodland <redacted>
---
  drivers/hid/hid-ids.h           | 3 ++-
  drivers/hid/usbhid/hid-quirks.c | 1 +
  2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h
index f769208..596f37a 100644
--- a/drivers/hid/hid-ids.h
+++ b/drivers/hid/hid-ids.h
@@ -287,7 +287,8 @@
  #define USB_VENDOR_ID_DMI		0x0c0b
  #define USB_DEVICE_ID_DMI_ENC		0x5fab

-#define USB_VENDOR_ID_DRAGONRISE	0x0079
+#define USB_VENDOR_ID_DRAGONRISE		0x0079
+#define USB_DEVICE_ID_DRAGONRISE_GAMECUBE	0x1843

  #define USB_VENDOR_ID_DWAV		0x0eef
  #define USB_DEVICE_ID_EGALAX_TOUCHCONTROLLER	0x0001
diff --git a/drivers/hid/usbhid/hid-quirks.c 
b/drivers/hid/usbhid/hid-quirks.c
index 1dff8f0..1742ed0 100644
--- a/drivers/hid/usbhid/hid-quirks.c
+++ b/drivers/hid/usbhid/hid-quirks.c
@@ -71,6 +71,7 @@ static const struct hid_blacklist {
  	{ USB_VENDOR_ID_CH, USB_DEVICE_ID_CH_AXIS_295, HID_QUIRK_NOGET },
  	{ USB_VENDOR_ID_CHICONY, 
USB_DEVICE_ID_CHICONY_PIXART_USB_OPTICAL_MOUSE, HID_QUIRK_ALWAYS_POLL },
  	{ USB_VENDOR_ID_DMI, USB_DEVICE_ID_DMI_ENC, HID_QUIRK_NOGET },
+	{ USB_VENDOR_ID_DRAGONRISE, USB_DEVICE_ID_DRAGONRISE_GAMECUBE, 
HID_QUIRK_MULTI_INPUT },
  	{ USB_VENDOR_ID_ELAN, USB_DEVICE_ID_ELAN_TOUCHSCREEN, 
HID_QUIRK_ALWAYS_POLL },
  	{ USB_VENDOR_ID_ELAN, USB_DEVICE_ID_ELAN_TOUCHSCREEN_009B, 
HID_QUIRK_ALWAYS_POLL },
  	{ USB_VENDOR_ID_ELAN, USB_DEVICE_ID_ELAN_TOUCHSCREEN_0103, 
HID_QUIRK_ALWAYS_POLL },
-- 
2.1.4

Re: [RESEND] [PATCH] HID: quirks: add MULTI_INPUT quirk for Dragonrise GameCube adapter

From: Jiri Kosina <jikos@kernel.org>
Date: 2015-10-06 14:04:20

On Tue, 6 Oct 2015, Andrew Rodland wrote:
This device (aka Mayflash GameCube Adapter) has 4 controller ports, and
without the quirk they all become one very large joystock device. With the
quirk they're recognized as 4 separate joysticks.

Signed-off-by: Andrew Rodland <redacted>
Sorry, the formatting is still damaged, please fix your client and resend 
the patch.

For some common ones, there are some hints in

	Documentation/email-clients.txt

-- 
Jiri Kosina
SUSE Labs
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help