Hi Alan,

On Thursday 20 December 2007, Alan James wrote:
> http://www.chinavasion.com/product_info.php/pName/driverless-webcam-stylish
>-bendable-design/
>
> I've just got hold of three of these funky looking webcams, (the brass
> version not the silver they show on the web page) but unfortunately it
> doesn't just work.
>
> uvcvideo has a go but fails to initialise the device:
>
> usb 2-6: new high speed USB device using ehci_hcd and address 8
> usb 2-6: configuration #1 chosen from 1 choice
> uvcvideo: Found UVC 1.00 device USB 2.0 PC Cam (090c:b370)
> nm_hal_device_added(): New device added (hal udi is
> '/org/freedesktop/Hal/devices/usb_device_90c_b370_noserial').
> nm_hal_device_added(): New device added (hal udi is
> '/org/freedesktop/Hal/devices/usb_device_ffffffff_ffffffff_noserial').
> uvcvideo: Failed to query (135) UVC control 1 (unit 0) : -110 (exp. 26).
> uvcvideo: Failed to query (129) UVC control 1 (unit 0) : -110 (exp. 26).

I don't like that. Many devices are known to be buggy and fail to answer the 
first request properly. The second request should work though.

> uvcvideo: Failed to initialize the device (-5).
> nm_hal_device_added(): New device added (hal udi is
> '/org/freedesktop/Hal/devices/usb_device_90c_b370_noserial_if1').
> nm_hal_device_added(): New device added (hal udi is
> '/org/freedesktop/Hal/devices/usb_device_90c_b370_noserial_usbraw').
>
> I'm using a stock Ubuntu 2.6.22 kernel so I wont have the latest
> uvcvideo but since I don't see this device id on your supported list
> I'm guessing that wont work either.
> Let me know if you need to me to do anything or need more information.
> lsusb output is attached.

The camera might have crashed when getting the first request. Please try the 
attached patch and let me know if it helps. The Failed to query (135) message 
should disappear complete. If it doesn't, you're still using the unpatched 
driver.

Best regards,

Laurent Pinchart
Index: uvc_video.c
===================================================================
--- uvc_video.c	(revision 157)
+++ uvc_video.c	(working copy)
@@ -821,8 +821,7 @@
 	/* Some webcams don't suport GET_DEF request on the probe control. We
 	 * fall back to GET_CUR if GET_DEF fails.
 	 */
-	if ((ret = uvc_get_video_ctrl(video, probe, 1, GET_DEF)) < 0 &&
-	    (ret = uvc_get_video_ctrl(video, probe, 1, GET_CUR)) < 0)
+	if ((ret = uvc_get_video_ctrl(video, probe, 1, GET_CUR)) < 0)
 		return ret;
 
 	/* Check if the default format descriptor exists. Use the first
_______________________________________________
Linux-uvc-devel mailing list
Linux-uvc-devel@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/linux-uvc-devel

Reply via email to