Re: [Linux-uvc-devel] uvc driver under linux 2.4
Linux UVC driver and tools
Brought to you by:
pinchartl
From: Laurent P. <lau...@id...> - 2009-09-18 13:13:45
|
Hi Dmitry, On Monday 31 August 2009 22:33:15 Dmitry wrote: > Hi all. > > I tried to port UVC linux driver for using with 2.4 kernel by replacing new > 2.6 usb functions into their 2.4-analogs. The code is attached. > > Module can be loaded successfully (on my 2.4.32) and it detects v4l2-device > correctly. But fails in initialization with message (in dmesg) > > uvcvideo: Found UVC 1.00 device <unnamed> (05a9:2640) > uvcvideo: Failed to query (135) UVC control 1 (unit 0) : 0 (exp. 26). quirks=256 might help for this. > uvcvideo: Unable to initialize the status endpoint (-22), status interrupt > will not be supported. > > -22 (EINVAL) occurs at usb_submit_urb at > static void uvc_status_complete(struct urb *urb) function > > According to Documentation/usb/URB.txt this can mean "bad interval". I > don't know which interval to use. I tried several values from little to > large, no effect. The interval is reported by the camera in the USB descriptors. > All mmap() calls from any programs fail too (in dmesg). On my OmniVision > Technologies (05a9:2640) it shows > > uvcvideo: Failed to resubmit video URB (-19). > > With other cameras the messages are different. I suppose this is caused by > bad initialization. > > And I have no idea how to cope with it. I'm not specialist in usb > programming but I hope you can help me. 2.4 is old. Very old. Way too old. I haven't touched 2.4 for a long time, I have no 2.4 kernel running on any of my machines and I don't even have a copy of the 2.4 source code. I'm afraid you'll be on your own there. I develop the UVC driver in my (limited) spare time for fun, and backporting to old kernels is the kind of job Linux developers do for money, not for fun. If you really need support you will probably have to buy it. Sorry. -- Regards, Laurent Pinchart |