Skip to contentSkip to conversation

HID: quirks: add MULTI_INPUT quirk for Dragonrise GameCube adapter

PATCH Superseded Andrew Rodland 2 participants 2 messages Oct 4, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 HID: quirks: add MULTI_INPUT quirk for Dragonrise GameCube adapter

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.

---
 drivers/hid/hid-ids.h           | 3 ++-
 drivers/hid/usbhid/hid-quirks.c | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)
drivers/hid/hid-ids.h +2 -1
index f769208..596f37a 100644
@@ -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
drivers/hid/usbhid/hid-quirks.c +0 -0
index 1dff8f0..1742ed0 100644
@@ -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 },

Signature · 1 line
2.1.4
maintainer
#1 lore raw
Quoted 5 lines · Andrew Rodland

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.

Andrew,

your patch has been corrupted by your mailer (line wrapped). Could you please fix this up on your side and resend?

Thanks,

Signature · 2 lines
Jiri Kosina
SUSE Labs