Re: V4L2 v4l2_event_dequeue blocks forever when USB/UVC disconnects

2018-01-18 Thread Michael Walz
On 18.01.2018 11:18, Hans Verkuil wrote: Are you able to compile the kernel if I give you a patch to test? It should be a fairly easy fix. Hi Hans, I have a working yocto setup. Should be no problem to integrate the patch. Thanks a lot and best regards, Michael

Re: V4L2 v4l2_event_dequeue blocks forever when USB/UVC disconnects

2018-01-18 Thread Hans Verkuil
Hi Michael, On 01/18/18 10:57, Michael Walz wrote: > Hi there, > > I am currently developing a USB/UVC camera and I think I discovered an > issue in the V4L2 event system. In userland I have implemented a thread > for the VIDIOC_DQEVENT ioctl, which blocks until there is a new event. > This wo

V4L2 v4l2_event_dequeue blocks forever when USB/UVC disconnects

2018-01-18 Thread Michael Walz
Hi there, I am currently developing a USB/UVC camera and I think I discovered an issue in the V4L2 event system. In userland I have implemented a thread for the VIDIOC_DQEVENT ioctl, which blocks until there is a new event. This works perfectly until the camera is disconnected during operation