All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] HID: quirks: add MULTI_INPUT quirk for Dragonrise GameCube adapter
@ 2015-10-04  2:52 Andrew Rodland
  2015-10-04 21:06 ` Jiri Kosina
  0 siblings, 1 reply; 2+ messages in thread
From: Andrew Rodland @ 2015-10-04  2:52 UTC (permalink / raw)
  To: linux-input; +Cc: Jiri Kosina

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 <andrew@cleverdomain.org>
---
 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

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

* Re: [PATCH] HID: quirks: add MULTI_INPUT quirk for Dragonrise GameCube adapter
  2015-10-04  2:52 [PATCH] HID: quirks: add MULTI_INPUT quirk for Dragonrise GameCube adapter Andrew Rodland
@ 2015-10-04 21:06 ` Jiri Kosina
  0 siblings, 0 replies; 2+ messages in thread
From: Jiri Kosina @ 2015-10-04 21:06 UTC (permalink / raw)
  To: Andrew Rodland; +Cc: linux-input

On Sat, 3 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 <andrew@cleverdomain.org>

Andrew,

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

Thanks,

-- 
Jiri Kosina
SUSE Labs


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

end of thread, other threads:[~2015-10-04 21:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-04  2:52 [PATCH] HID: quirks: add MULTI_INPUT quirk for Dragonrise GameCube adapter Andrew Rodland
2015-10-04 21:06 ` Jiri Kosina

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.