Commit b377c2b
committed
[media] vb2: fix a regression in poll() behavior for output,streams
[ Upstream commit 4623e59 ]
In the 3.17 kernel the poll() behavior changed for output streams:
as long as not all buffers were queued up poll() would return that
userspace can write. This is fine for the write() call, but when
using stream I/O this changed the behavior since the expectation
was that it would wait for buffers to become available for dequeuing.
This patch only enables the check whether you can queue buffers
for file I/O only, and skips it for stream I/O.
Signed-off-by: Hans Verkuil <[email protected]>
Acked-by: Laurent Pinchart <[email protected]>
Cc: <[email protected]> # for v3.17 and up
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>1 parent 3c0a63d commit b377c2b
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2662 | 2662 | | |
2663 | 2663 | | |
2664 | 2664 | | |
2665 | | - | |
2666 | | - | |
| 2665 | + | |
| 2666 | + | |
2667 | 2667 | | |
2668 | | - | |
| 2668 | + | |
2669 | 2669 | | |
2670 | 2670 | | |
2671 | 2671 | | |
| |||
0 commit comments