Skip to content
Snippets Groups Projects
Commit 94f3f48f authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Mauro Carvalho Chehab
Browse files

[media] omap_vout: Add poll() support

parent 1f69fd97
Branches
Tags
No related merge requests found
...@@ -833,6 +833,15 @@ static void omap_vout_buffer_release(struct videobuf_queue *q, ...@@ -833,6 +833,15 @@ static void omap_vout_buffer_release(struct videobuf_queue *q,
/* /*
* File operations * File operations
*/ */
static unsigned int omap_vout_poll(struct file *file,
struct poll_table_struct *wait)
{
struct omap_vout_device *vout = file->private_data;
struct videobuf_queue *q = &vout->vbq;
return videobuf_poll_stream(file, q, wait);
}
static void omap_vout_vm_open(struct vm_area_struct *vma) static void omap_vout_vm_open(struct vm_area_struct *vma)
{ {
struct omap_vout_device *vout = vma->vm_private_data; struct omap_vout_device *vout = vma->vm_private_data;
...@@ -1861,6 +1870,7 @@ static const struct v4l2_ioctl_ops vout_ioctl_ops = { ...@@ -1861,6 +1870,7 @@ static const struct v4l2_ioctl_ops vout_ioctl_ops = {
static const struct v4l2_file_operations omap_vout_fops = { static const struct v4l2_file_operations omap_vout_fops = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.poll = omap_vout_poll,
.unlocked_ioctl = video_ioctl2, .unlocked_ioctl = video_ioctl2,
.mmap = omap_vout_mmap, .mmap = omap_vout_mmap,
.open = omap_vout_open, .open = omap_vout_open,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment