On Tue, 22 May 2012 16:39:17 +0200 Hans de Goede <hdegoede@xxxxxxxxxx> wrote: > On 05/22/2012 04:08 PM, Paulo Assis wrote: > > Hi, > > This bug also causes the camera to crash when changing fps in > > guvcview, uvc devices (at least all the ones I tested) require the > > stream to be restarted for fps to change, so in the case of this > > driver after STREAMOFF the camera just becomes unresponsive. > > [...] > > 2012/5/22 Lluís Batlle i Rossell<viric@xxxxxxxxxx>: > >> Hello, > >> > >> I'm trying to get video using v4l2 ioctls from a gspca_ov519 camera, and after > >> STREAMOFF all buffers are still flagged as QUEUED, and QBUF fails. DQBUF also > >> fails (blocking for a 3 sec timeout), after streamoff. So I'm stuck, after > >> STREAMOFF, unable to get pictures coming in again. (Linux 3.3.5). > >> [...] > We talked about this on irc, attached it a patch which should fix this, feedback > appreciated. > Thanks HdG. Paulo, this seems to fix the problem I too was having when changing the framerate on ov534 with guvcview. IIRC, from a previous investigation, I've been experiencing this since commit f7059ea, which in fact removes the lines HdG added back, but I didn't put too much effort in investigating the exact cause, sorry. For the record the guvcview error messages were: VIDIOC_QBUF - Unable to queue buffer: Invalid argument Could not grab image (select timeout): Resource temporarily unavailable I feel I can add a: Tested-by: Antonio Ospite <ospite@xxxxxxxxxxxxxxxxx> I can backport the change to older kernels and even CC linux-stable if you think it is appropriate, that's the least I can do to expiate for knowing about a bug/regression and not hunting its cause hard enough. HdG maybe you could mention f7059ea in the commit message of this fix if you can confirm the problem was introduced there. Regards, Antonio -- Antonio Ospite http://ao2.it A: Because it messes up the order in which people normally read text. See http://en.wikipedia.org/wiki/Posting_style Q: Why is top-posting such a bad thing? -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html