Skip to content

Commit d6ea2f8

Browse files
raphnetJiri Kosina
authored andcommitted
HID: usbhid: Add a quirk for raphnet multi-gamepad adapters
The raphnet.net 4nes4snes and 2nes2snes multi-joystick adapters use a single HID report descriptor with one report ID per controller. This has the effect that the inputs of otherwise independent game controllers get packed in one large joystick device. With this patch each controller gets its own /dev/input/jsX device, which is more natural and less confusing than having all inputs going to the same place. Signed-off-by: Raphael Assenat <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 8de29a3 commit d6ea2f8

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

drivers/hid/hid-ids.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,4 +1038,11 @@
10381038
#define USB_VENDOR_ID_RISO_KAGAKU 0x1294 /* Riso Kagaku Corp. */
10391039
#define USB_DEVICE_ID_RI_KA_WEBMAIL 0x1320 /* Webmail Notifier */
10401040

1041+
#define USB_VENDOR_ID_MULTIPLE_1781 0x1781
1042+
#define USB_DEVICE_ID_RAPHNET_4NES4SNES_OLD 0x0a8d
1043+
1044+
#define USB_VENDOR_ID_DRACAL_RAPHNET 0x289b
1045+
#define USB_DEVICE_ID_RAPHNET_2NES2SNES 0x0002
1046+
#define USB_DEVICE_ID_RAPHNET_4NES4SNES 0x0003
1047+
10411048
#endif

drivers/hid/usbhid/hid-quirks.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,9 @@ static const struct hid_blacklist {
140140
{ USB_VENDOR_ID_SYNAPTICS, USB_DEVICE_ID_SYNAPTICS_QUAD_HD, HID_QUIRK_NO_INIT_REPORTS },
141141
{ USB_VENDOR_ID_SYNAPTICS, USB_DEVICE_ID_SYNAPTICS_TP_V103, HID_QUIRK_NO_INIT_REPORTS },
142142
{ USB_VENDOR_ID_HOLTEK_ALT, USB_DEVICE_ID_HOLTEK_ALT_KEYBOARD_A096, HID_QUIRK_NO_INIT_INPUT_REPORTS },
143+
{ USB_VENDOR_ID_MULTIPLE_1781, USB_DEVICE_ID_RAPHNET_4NES4SNES_OLD, HID_QUIRK_MULTI_INPUT },
144+
{ USB_VENDOR_ID_DRACAL_RAPHNET, USB_DEVICE_ID_RAPHNET_2NES2SNES, HID_QUIRK_MULTI_INPUT },
145+
{ USB_VENDOR_ID_DRACAL_RAPHNET, USB_DEVICE_ID_RAPHNET_4NES4SNES, HID_QUIRK_MULTI_INPUT },
143146

144147
{ 0, 0 }
145148
};

0 commit comments

Comments
 (0)