Hi Ralph,

On Wednesday 23 July 2008, Ralph Müller-Welt wrote:
> Hi Laurent, Hi List,
>
> Am Dienstag, 22. Juli 2008 23:08:09 schrieb Laurent Pinchart:
> ...
>
> > > as i dont use my Logitech Quickcam Orbit/Sphere MP regularily, i dont
> > > know since when ive got the cam not working.
> > > I plug the device in but no /dev/videoX is created.
> > > So i got the Sources and tried with this.
> > >
> > > Plugging in the device
> > > /var/log/messages
> > > usb 5-4: new high speed USB device using ehci_hcd and address 6
> > > usb 5-4: configuration #1 chosen from 1 choice
> > > uvcvideo: Found UVC 1.00 device <unnamed> (046d:08c2)
> >
> > Seems pretty normal until then.
> >
> > > Same result with or without udev-rule
> > > KERNEL=="video?", SUBSYSTEMS=="video4linux", ATTR{name}=="UVC Camera*",
> > > SYMLINK+="video-cam"
> > >
> > > I know it did work somewhen :-)
> > > So why not anymore?
> >
> > Check /sys/class/video4linux and see if the kernel created a device for
> > your webcam. If it did you probably have a udev issue, if it didn't then
> > there's a driver-side problem.
>
> Checking ls /sys/class/video4linux just gives me the video0 from my TVcard,
> no additional video devices there.
>
> To get more info i loaded module with
> $ sudo modprobe uvcvideo trace=255
>
> /var/log/messages
> Jul 23 00:27:17 A8V kernel: [56071.854891] uvcvideo: Found UVC 1.00 device
> <unnamed> (046d:08c2)
> Jul 23 00:27:17 A8V kernel: [56071.856518] uvcvideo: Found a valid video
> chain (1 -> 5).
> Jul 23 00:27:17 A8V kernel: [56071.858833] usbcore: registered new
> interface driver uvcvideo
> Jul 23 00:27:17 A8V kernel: [56071.858955] USB Video Class driver (SVN
> r233)
>
> [Plugging in]
>
> Jul 23 00:27:26 A8V kernel: [56075.677206] usb 5-4: USB disconnect, address
> 3 Jul 23 00:27:26 A8V kernel: [56075.781011] usb 5-4: new high speed USB
> device using ehci_hcd and address 4
> Jul 23 00:27:27 A8V kernel: [56075.915727] usb 5-4: configuration #1 chosen
> from 1 choice
> Jul 23 00:27:27 A8V kernel: [56075.916252] uvcvideo: Found UVC 1.00 device
> <unnamed> (046d:08c2)
> Jul 23 00:27:27 A8V kernel: [56075.916301] uvcvideo: Found a valid video
> chain (1 -> 5).
>
> hm, i hoped it spit out more info...
> Anything i can do?

Apply the attached patch and try again. The driver will spit more information.

Best regards,

Laurent Pinchart
Index: uvc_driver.c
===================================================================
--- uvc_driver.c	(revision 237)
+++ uvc_driver.c	(working copy)
@@ -1454,8 +1454,10 @@
 
 	/* Register the device with V4L. */
 	vdev = video_device_alloc();
-	if (vdev == NULL)
+	if (vdev == NULL) {
+		uvc_printk(KERN_INFO "Unable to allocate video device.\n");
 		return -1;
+	}
 
 	/* We already hold a reference to dev->udev. The video device will be
 	 * unregistered before the reference is released, so we don't need to
@@ -1486,9 +1488,11 @@
 	if (video_register_device(vdev, VFL_TYPE_GRABBER, -1) < 0) {
 		dev->video.vdev = NULL;
 		video_device_release(vdev);
+		uvc_printk(KERN_INFO "Unable to register video device.\n");
 		return -1;
 	}
 
+	uvc_printk(KERN_INFO "Video device registered.\n");
 	return 0;
 }
 
_______________________________________________
Linux-uvc-devel mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/linux-uvc-devel

Reply via email to