Re: A videocam works on OHCI and fails on UHCI

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 14 Nov 2009, Theodore Kilgore wrote:

> Actually, I have succeeded in finding a fix for the problem at this point.
> 
> There is a sequence of commands used in the Windows driver for 
> setting up these cameras, which I omitted from the code in mr97310a.c. The 
> reason I omitted them is, some of them actually make the camera unstable 
> at some of the resolution settings. In particular, at 352x288 and at 
> 176x144. The OEM driver seems to assume that the camera will stream at 
> 320x240 and 160x120 only, even though it is capable of 352x288 and 
> 176x144. So, as I said, I omitted the whole sequence because it seemed to 
> be causing nothing but trouble.
> 
> Well, so now I took a second look. There is exactly one command which sets 
> up the camera to stream properly if it is hooked up to a UHCI machine! I 
> assume, though I have no way of really knowing this without the usb 
> traffic analyser that I do not own, but it seems that it sets some kind of 
> timing. I put this one command back in (for the CIF type 1 cameras only) 
> and now I can report that the all of the CIF cameras will stream on all of 
> the machines in my house on which I have tested. This list specifically 
> includes the one with the VIA chipset, as well as the old Dell laptop, and 
> also the eeePC.

That doesn't explain why the old code worked with OHCI but not UHCI.  
We may never know the answer.  But it does appear to exonerate the 
uhci-hcd driver.  :-)

> I would highly recommend that this prospective patched version of the
> driver gets included in 2.6.32 when it comes out, and not the version
> of the driver which is currently found in 2.6.32-rc6.

That's up to the driver's maintainer, and it depends on the size of the 
changes.  It's getting rather late in the 2.6.32-rc series; big changes 
at this stage are frowned upon.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux