|
@@ -1965,6 +1965,11 @@ unsigned int vb2_poll(struct vb2_queue *q, struct file *file, poll_table *wait)
|
|
|
poll_wait(file, &fh->wait, wait);
|
|
poll_wait(file, &fh->wait, wait);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ if (!V4L2_TYPE_IS_OUTPUT(q->type) && !(req_events & (POLLIN | POLLRDNORM)))
|
|
|
|
|
+ return res;
|
|
|
|
|
+ if (V4L2_TYPE_IS_OUTPUT(q->type) && !(req_events & (POLLOUT | POLLWRNORM)))
|
|
|
|
|
+ return res;
|
|
|
|
|
+
|
|
|
/*
|
|
/*
|
|
|
* Start file I/O emulator only if streaming API has not been used yet.
|
|
* Start file I/O emulator only if streaming API has not been used yet.
|
|
|
*/
|
|
*/
|