Hi Thomas, On Monday 07 January 2008, Thomas Netter wrote: > Dear Laurent, > > Bonne année 2008 et merci pour votre aide.
Thanks. Happy new year to you too. > Here's a follow-up to the Sanyo Xacti uvc problem. > I did the following: [snip] I had a look at the various dumps (from Windows and Linux) and I have to say I'm really puzzled. When stopping streaming the Windows driver sends a SET INTERFACE request (called SELECT INTERFACE in the Snoopy log) that succeeds. The Linux driver sends the exact same request, but the request times out. Further requests then fail, and luvcview exits with an error. I'm puzzled as to why the device times out in Linux. It might be that a previous request left it in some kind of bad state, but that's hard to tell. As a wild guess, could you try the following patch and see if it helps ? Make sure you have a look at the kernel log for debug messages. Best regards, Laurent Pinchart
Index: uvc_video.c =================================================================== --- uvc_video.c (revision 163) +++ uvc_video.c (working copy) @@ -722,7 +722,11 @@ if (ep == NULL) return -EIO; - ret = uvc_init_video_bulk(video, ep); + if ((ret = uvc_init_video_bulk(video, ep)) < 0) + return ret; + + if ((ret = usb_set_interface(video->dev->udev, intfnum, 0)) < 0) + uvc_printk(KERN_INFO, "SET INTERFACE failed with %d\n", ret); } if (ret < 0)
_______________________________________________ Linux-uvc-devel mailing list [email protected] https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
