Hi Filippo,

On Tuesday 11 November 2008, Filippo Argiolas wrote:
> On mar, 2008-11-11 at 18:31 +0100, Laurent Pinchart wrote:
> > Could you please check the kernel log (dmesg) for error messages printed
> > by the uvcvideo driver after locking the camera/driver ?
>
> Hi Laurent, I have no error message in the kernel log when the camera
> locks. Anyway I'm attaching here some trace obtained with modprobe
> uvcvideo trace=255.

Thanks.

> dmesg-gst-1.log
> Trace obtained running gst-launch-0.10 v4l2src ! video/x-raw-yuv,
> width=1280, height=1024 ! xvimagesink The webcam works nice, I can see the
> video but something happens and after I close it I'm not able to use the
> webcam anymore

What do you mean by "something happens" ? Did the camera stop streaming ? I 
can't see any hint in the log.

> dmesg-gst-2.log
> Trace obtained with the gst-launch pipeline ran afterwards the previous.
> I cannot see any video and the trace outputs tons of messages like
> "uvcvideo: Dropping payload (out of sync)."
>
> Note that I'm using uvcvideo from a v4l-dvb checkout about a week old.
> Hope it helps, tell me if you need further information.

Could you please apply the attached patch and recapture kernel log traces for 
the above two use cases ?

Best regards,

Laurent Pinchart
Index: uvc_video.c
===================================================================
--- uvc_video.c	(revision 262)
+++ uvc_video.c	(working copy)
@@ -385,8 +385,9 @@
 	 */
 	if (buf->state != UVC_BUF_STATE_ACTIVE) {
 		if (fid == video->last_fid) {
-			uvc_trace(UVC_TRACE_FRAME, "Dropping payload (out of "
-				"sync).\n");
+			uvc_trace(UVC_TRACE_FRAME, "Dropping payload (%d "
+				"bytes, out of sync) - fid %u last fid %u.\n",
+				len, fid, video->last_fid);
 			if ((video->dev->quirks & UVC_QUIRK_STREAM_NO_FID) &&
 			    (data[1] & UVC_STREAM_EOF))
 				video->last_fid ^= UVC_STREAM_FID;
_______________________________________________
Linux-uvc-devel mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/linux-uvc-devel

Reply via email to