Re: [pwc] Difficulties with a QuickCam 4000 Pro and USB2.0 hubs

2006-03-21 Thread Raymond

At 09:38 AM 20/03/2006 +0100, you wrote:

On Mon, Mar 20, 2006 at 11:48:33AM +1100, Raymond wrote:
> plugged in a USB1.1 hub first - it all works BUT I don't get USB2.0 speeds
> which is a bit of a problem in my case unfortunately ...

Webcam supported by the pwc driver are only USB1. So if you plug it into a
USB2.0 port you need to have an usb1 driver (uhci-hcd or ohci-hcd depending
of your hardware), and you will not have the speed of the USB2.0. All devices
on this port will run at usb1 speed.


Ah OK ... is this a limitation of the webcam itself or is there something 
the driver uses which doesn't like EHCI?


At any rate I think we've managed to bypass this problem, we've just 
purchased a QuickCam Pro 5000 and managed to get our software (Player/Stage 
based) working with the Linux UVC driver from http://linux-uvc.berlios.de/ ...


Cheers!

- Raymond 


___
pwc mailing list
pwc@lists.saillard.org
http://lists.saillard.org/mailman/listinfo/pwc


Re: [pwc] Difficulties with a QuickCam 4000 Pro and USB2.0 hubs

2006-03-20 Thread Luc Saillard
On Mon, Mar 20, 2006 at 11:48:33AM +1100, Raymond wrote:
> plugged in a USB1.1 hub first - it all works BUT I don't get USB2.0 speeds 
> which is a bit of a problem in my case unfortunately ...

Webcam supported by the pwc driver are only USB1. So if you plug it into a
USB2.0 port you need to have an usb1 driver (uhci-hcd or ohci-hcd depending
of your hardware), and you will not have the speed of the USB2.0. All devices
on this port will run at usb1 speed.

Luc
___
pwc mailing list
pwc@lists.saillard.org
http://lists.saillard.org/mailman/listinfo/pwc


Re: [pwc] Difficulties with a QuickCam 4000 Pro and USB2.0 hubs

2006-03-19 Thread Raymond

At 05:19 PM 19/03/2006 +0100, you wrote:

Hi,

Raymond wrote:

Hi all!


P.S. As a side note, if I run "lsusb", I notice that if the camera is 
picked up on bus 1, it fails and if it's picked up on bus 2 it succeeds 
(this is all the same physical port on the computer). I'm guessing if the 
first device plugged in (a hub or an "actual" device) is usb1.1 the 
firmware assigns it to bus 2 otherwise it becomes bus 1 ... not sure if 
that's a "normal" way of doing things or if it's something OQO have done ...

Yes that standard way of doing things :
the usb2 controller only manage high speed device. When a low/full speed 
is detected it route the device to a "companion" controller which support 
usb 1.


OK ... I sorta thought it'd be the one hub and the switching from 1.1 to 
2.0 was handled in hardware (like on a hub) ... I guess that makes sense 
too :-)




I suppose on our computer you have 2 drivers for usb controller : ehci for 
usb2 and ohci/uhci for usb1. What happen if you unload/disable ehci driver ?


Unloading the ehci driver (rmmod ehci-hcd) gives the same result as if I 
plugged in a USB1.1 hub first - it all works BUT I don't get USB2.0 speeds 
which is a bit of a problem in my case unfortunately ...


For a laugh I tried disabling the ohci driver instead and everything fell 
in a heap ...



Funnily enough, if I unload the ehci driver, plug in the USB2.0 hub then 
the webcam, then reload the ehci driver (modprobe ehci-hcd) then run "xawtv 
-c /dev/video0", I don't get any dmesg errors but I just get a black screen 
and in the xawtv terminal I get "v4l2: oops: select timeout" then "v4l2: 
read: Interrupted system call" then a backtrace ...



I had a quick, completely uninformed poke around the driver, it looks like 
pwc-ctrl.c line 355, function set_video_mode_Kiara (which corresponds to 
the camera I'm using), send_video_command is returning the -32 (broken 
pipe) error which it's in turn getting from usb_control_msg ... does this 
mean the source of the problem is pretty much beyond our control? I would 
have thought usb_control_msg would be used by most (all?) USB drivers so 
you'd expect them all to work or all to not work unless somehow there was 
something weird about how the PWC chip responds to USB2.0 ...



- Raymond


P.S. I recognise Timon and Nala ... but who is Kiara?! 


___
pwc mailing list
pwc@lists.saillard.org
http://lists.saillard.org/mailman/listinfo/pwc


Re: [pwc] Difficulties with a QuickCam 4000 Pro and USB2.0 hubs

2006-03-19 Thread matthieu castet

Hi,

Raymond wrote:

Hi all!




P.S. As a side note, if I run "lsusb", I notice that if the camera is 
picked up on bus 1, it fails and if it's picked up on bus 2 it succeeds 
(this is all the same physical port on the computer). I'm guessing if 
the first device plugged in (a hub or an "actual" device) is usb1.1 the 
firmware assigns it to bus 2 otherwise it becomes bus 1 ... not sure if 
that's a "normal" way of doing things or if it's something OQO have done 
...

Yes that standard way of doing things :
the usb2 controller only manage high speed device. When a low/full speed 
is detected it route the device to a "companion" controller which 
support usb 1.


I suppose on our computer you have 2 drivers for usb controller : ehci 
for usb2 and ohci/uhci for usb1. What happen if you unload/disable ehci 
driver ?



Matthieu
___
pwc mailing list
pwc@lists.saillard.org
http://lists.saillard.org/mailman/listinfo/pwc