Hi Pekka,

On Saturday 24 May 2008, Pekka Vuorela wrote:
> Hello,
>
> I debugged a bug[1] I was having with Motion and noticed that the UVC
> driver doesn't return an error when doing an ioctl() on a disconnected
> device. Wouldn't ENODEV be a sensible value to return in such
> situations?
>
> Anyway, this small patch adds a check in the beginning of
> uvc_v4l2_do_ioctl(). With the patch Motion works with me as it seems to
> work with the pwc driver.
>
> 1:
> http://www.lavrsen.dk/twiki/bin/view/Motion/BugReport2008x05x17x175521

Thanks for debugging the problem. I'm still not sure if all ioctls should 
return -ENODEV when the device gets disconnected. It might make sense to 
allow applications to retrieve the last few captured images for instance.

I'll think about this and I'll work on a patch in the next few days.

Best regards,

Laurent Pinchart
_______________________________________________
Linux-uvc-devel mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/linux-uvc-devel

Reply via email to