diff options
| author | Laurent Pinchart <[email protected]> | 2014-06-03 17:41:06 -0300 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2014-07-17 12:55:09 -0300 |
| commit | 9241650d62f79a3da01f1d5e8ebd195083330b75 (patch) | |
| tree | c3b8ab85ba34a02a7dc28d95fc97637ef628ee30 /tools/perf/scripts/python | |
| parent | bdc2df62ae38bbab044078f4d25a7a3d9e2379c9 (diff) | |
[media] v4l: vb2: Don't return POLLERR during transient buffer underruns
The V4L2 specification states that
"When the application did not call VIDIOC_QBUF or VIDIOC_STREAMON yet
the poll() function succeeds, but sets the POLLERR flag in the revents
field."
The vb2_poll() function sets POLLERR when the queued buffers list is
empty, regardless of whether this is caused by the stream not being
active yet, or by a transient buffer underrun.
Bring the implementation in line with the specification by returning
POLLERR if no buffer has been queued only when the queue is not
streaming. Buffer underruns during streaming are not treated specially
anymore and just result in poll() blocking until the next event.
Signed-off-by: Laurent Pinchart <[email protected]>
Acked-by: Hans Verkuil <[email protected]>
Acked-by: Pawel Osciak <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions