|
@@ -822,10 +822,10 @@ unsigned int vb2_poll(struct vb2_queue *q, struct file *file, poll_table *wait)
|
|
|
return res | POLLERR;
|
|
|
|
|
|
/*
|
|
|
- * For output streams you can write as long as there are fewer buffers
|
|
|
- * queued than there are buffers available.
|
|
|
+ * For output streams you can call write() as long as there are fewer
|
|
|
+ * buffers queued than there are buffers available.
|
|
|
*/
|
|
|
- if (q->is_output && q->queued_count < q->num_buffers)
|
|
|
+ if (q->is_output && q->fileio && q->queued_count < q->num_buffers)
|
|
|
return res | POLLOUT | POLLWRNORM;
|
|
|
|
|
|
if (list_empty(&q->done_list)) {
|