Small patch to hid-core.c for usb PS2 joystick adaptor

Philip Armstrong <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
It's a no-name Chinese thing, which lsusb reports as:

  Bus 003 Device 003: ID 0810:0001 Personal Communication Systems, Inc.

However, it needs the HID_QUIRK_MULTI_INPUT flag set, as it has
sockets for two joysticks which otherwise get reported as a single
/dev/input/js0 

Patch attached (against 2.6.18 , but it's obvious enough!)

cheers, Phil

-- 
http://www.kantaka.co.uk/ .oOo. public key: http://www.kantaka.co.uk/gpg.txt

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
dual-joystick.patch (text/x-diff, 1.1 KB)
--- linux-2.6.18/drivers/usb/input/hid-core.c~	2007-03-06 16:08:48.000000000 +0000
+++ linux-2.6.18/drivers/usb/input/hid-core.c	2007-03-23 22:51:43.000000000 +0000
@@ -1547,6 +1547,9 @@
 #define USB_VENDOR_ID_WISEGROUP_LTD	0x6677
 #define USB_DEVICE_ID_SMARTJOY_DUAL_PLUS 0x8802
 
+#define USB_VENDOR_ID_PERSONAL_COMM_LTD 0x0810
+#define USB_DEVICE_ID_PS2_DUAL_JOYSTICK  0x0001
+
 #define USB_VENDOR_ID_CODEMERCS		0x07c0
 #define USB_DEVICE_ID_CODEMERCS_IOW40	0x1500
 #define USB_DEVICE_ID_CODEMERCS_IOW24	0x1501
@@ -1713,6 +1716,7 @@
 	{ USB_VENDOR_ID_ATEN, USB_DEVICE_ID_ATEN_4PORTKVMC, HID_QUIRK_NOGET },
 	{ USB_VENDOR_ID_WISEGROUP, USB_DEVICE_ID_DUAL_USB_JOYPAD, HID_QUIRK_NOGET | HID_QUIRK_MULTI_INPUT },
 	{ USB_VENDOR_ID_WISEGROUP_LTD, USB_DEVICE_ID_SMARTJOY_DUAL_PLUS, HID_QUIRK_NOGET | HID_QUIRK_MULTI_INPUT },
+	{ USB_VENDOR_ID_PERSONAL_COMM_LTD, USB_DEVICE_ID_PS2_DUAL_JOYSTICK, HID_QUIRK_NOGET | HID_QUIRK_MULTI_INPUT },
 
 	{ USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_MIGHTYMOUSE, HID_QUIRK_MIGHTYMOUSE | HID_QUIRK_INVERT_HWHEEL },
 	{ USB_VENDOR_ID_A4TECH, USB_DEVICE_ID_A4TECH_WCP32PU, HID_QUIRK_2WHEEL_MOUSE_HACK_7 },
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.