From: Hans Verkuil Date: Fri, 26 Aug 2011 11:45:38 +0000 (-0300) Subject: [media] vivi: add support for VIDIOC_LOG_STATUS X-Git-Tag: MMI-PSA29.97-13-9~18177^2~135 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=380834d674c2b3655a9d7a219f288331f5cc7b4f;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [media] vivi: add support for VIDIOC_LOG_STATUS Signed-off-by: Hans Verkuil Acked-by: Hans de Goede Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/vivi.c b/drivers/media/video/vivi.c index 21bb324b701a..7cf94c09d99a 100644 --- a/drivers/media/video/vivi.c +++ b/drivers/media/video/vivi.c @@ -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, };