> -----Original Message-----
> From: Laurent Pinchart [mailto:laurent.pinch...@ideasonboard.com]
> Sent: Wednesday, August 24, 2011 3:58 PM
> To: Hiremath, Vaibhav
> Cc: linux-media@vger.kernel.org
> Subject: [PATCH] omap_vout: Add poll() support
> 
> Signed-off-by: Laurent Pinchart <laurent.pinch...@ideasonboard.com>
> ---
>  drivers/media/video/omap/omap_vout.c |   10 ++++++++++
>  1 files changed, 10 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/media/video/omap/omap_vout.c
> b/drivers/media/video/omap/omap_vout.c
> index a1f3c0f..cfc1705 100644
> --- a/drivers/media/video/omap/omap_vout.c
> +++ b/drivers/media/video/omap/omap_vout.c
> @@ -1184,6 +1184,15 @@ static void omap_vout_buffer_release(struct
> videobuf_queue *q,
>  /*
>   *  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)
>  {
>       struct omap_vout_device *vout = vma->vm_private_data;
> @@ -2175,6 +2184,7 @@ static const struct v4l2_ioctl_ops vout_ioctl_ops =
> {
> 
>  static const struct v4l2_file_operations omap_vout_fops = {
>       .owner          = THIS_MODULE,
> +     .poll           = omap_vout_poll,
>       .unlocked_ioctl = video_ioctl2,
>       .mmap           = omap_vout_mmap,
>       .open           = omap_vout_open,

Acked-By: Vaibhav Hiremath <hvaib...@ti.com>

Thanks,
Vaibhav

> --
> 1.7.3.4

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to