Can we get the HID layer to support duplicating the last usage for controls w/o a explicitly specified usage.
Not having this breaks some devices, most notably Phidget controllers.
I've been using this simple 2 line patch to make them work (though I'm sure it breaks other devices)
It is against 2.4.22 directly, but applies to 2.6.0-test10 (haven't tried against 2.6.0)
Please CC me for I am not subscribed.
-- James Lamanna
diff -dur linux-2.4.22/drivers/usb/hid-core.c linux-2.4.22-phid/drivers/usb/hid-core.c
--- linux-2.4.22/drivers/usb/hid-core.c2003-08-25 04:44:42.000000000 -0700
+++ linux-2.4.22-phid/drivers/usb/hid-core.c2003-11-21 08:38:52.000000000 -0800
@@ -242,6 +242,8 @@
offset = report->size; report->size += parser->global.report_size * parser->global.report_count; +if (usages < parser->global.report_count) +usages = parser->global.report_count;
if (usages == 0) return 0; /* ignore padding fields */
------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel