From: Tormod V. <lis...@gm...> - 2011-07-11 08:44:02
|
On Fri, Jul 8, 2011 at 4:34 PM, Aapo Tamminen wrote: > Attached is a version that works for me with kernel 2.6.37. I changed the > ioctl to unlocked_ioctl (not sure if it was the right choice, but it seems > to work) and fixed semaphore initialization. It could be improved by adding > ifdefs to select the correct version of the code for each kernel. I don't > know in which kernel version these changed have appeared. I didn't do Great. From looking at a similar lirc commit, this changed in 2.6.35: http://lirc.git.sourceforge.net/git/gitweb.cgi?p=lirc/lirc;a=commitdiff;h=1213809353d40bfd94f220862a8ad68a7cd4c47c > anything to the usbint_skel driver, I guess it is not needed. Yes, IIRC the skeleton driver is only useful for debugging. > I agree that a libusb based solution would be better. Or go for upstream acceptance and integrate with the media/rc stuff. I guess it could then be used by the generic input layer as well as by lirc-compatible applications, but I do not have a good overview on this. Does anyone know how this works? OTOH a libusb/lirc solution would be more portable. Cheers, Tormod |