[media] vivi: add support for VIDIOC_LOG_STATUS
authorHans Verkuil <hans.verkuil@cisco.com>
Fri, 26 Aug 2011 11:45:38 +0000 (08:45 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 21 Sep 2011 13:51:10 +0000 (10:51 -0300)
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/vivi.c

index 21bb324b701a3c2eda61febb3f6d480dedb0e91d..7cf94c09d99ab54d75b7ccf2668b0dbf200ac567 100644 (file)
@@ -958,6 +958,14 @@ static int vidioc_streamoff(struct file *file, void *priv, enum v4l2_buf_type i)
        return vb2_streamoff(&dev->vb_vidq, i);
 }
 
+static int vidioc_log_status(struct file *file, void *priv)
+{
+       struct vivi_dev *dev = video_drvdata(file);
+
+       v4l2_ctrl_handler_log_status(&dev->ctrl_handler, dev->v4l2_dev.name);
+       return 0;
+}
+
 static int vidioc_s_std(struct file *file, void *priv, v4l2_std_id *i)
 {
        return 0;
@@ -1201,6 +1209,7 @@ static const struct v4l2_ioctl_ops vivi_ioctl_ops = {
        .vidioc_s_input       = vidioc_s_input,
        .vidioc_streamon      = vidioc_streamon,
        .vidioc_streamoff     = vidioc_streamoff,
+       .vidioc_log_status    = vidioc_log_status,
        .vidioc_subscribe_event = vidioc_subscribe_event,
        .vidioc_unsubscribe_event = v4l2_event_unsubscribe,
 };