linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCHv2 0/3] vb2: fix VBI/poll regression
@ 2014-09-20 19:16 Hans Verkuil
  2014-09-20 19:16 ` [PATCHv2 1/3] " Hans Verkuil
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Hans Verkuil @ 2014-09-20 19:16 UTC (permalink / raw)
  To: linux-media; +Cc: m.chehab, laurent.pinchart

OK, so v1 wasn't the final patch series :-) Let's see if this is.

Changes since v1:

- Also initialize waiting_for_buffers in STREAMOFF and when CREATE_BUFS is
  called and no buffers have been allocated yet.
- Improve some of the wording in patch 2 based on suggestions from Laurent.

This patch series resolves the vb2 VBI poll regression where alevt and mtt
fail on drivers using vb2.

These applications call REQBUFS, queue the buffers and then poll() without
calling STREAMON first. They rely on poll() to return POLLERR in that case
and they do the STREAMON at that time. This is correct according to the spec,
but this was never implemented in vb2.

This is fixed together with an other vb2 regression: calling REQBUFS, then
STREAMON, then poll() without doing a QBUF first should return POLLERR as
well according to the spec. This has been fixed as well and the spec has
been clarified that this is only done for capture queues. Output queues in
the same situation will return as well, but with POLLOUT|POLLWRNORM set
instead of POLLERR.

The final patch adds missing documentation to poll() regarding event handling
and improves the documentation regarding stream I/O and output queues.

Regards,

	Hans


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-09-21  9:45 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-20 19:16 [PATCHv2 0/3] vb2: fix VBI/poll regression Hans Verkuil
2014-09-20 19:16 ` [PATCHv2 1/3] " Hans Verkuil
2014-09-20 19:26   ` Laurent Pinchart
2014-09-21  9:00     ` Hans Verkuil
2014-09-21  9:30       ` Laurent Pinchart
2014-09-21  9:34         ` Hans Verkuil
2014-09-21  9:45           ` Laurent Pinchart
2014-09-20 19:16 ` [PATCHv2 2/3] DocBook media: fix the poll() 'no QBUF' documentation Hans Verkuil
2014-09-20 19:16 ` [PATCHv2 3/3] DocBook media: improve the poll() documentation Hans Verkuil
2014-09-20 19:32 ` [PATCHv2 0/3] vb2: fix VBI/poll regression Laurent Pinchart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).