diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2011-08-26 07:45:38 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-09-21 09:51:10 -0400 |
commit | 380834d674c2b3655a9d7a219f288331f5cc7b4f (patch) | |
tree | a7f339468f0c511d1af78c00a283df76ce80aa78 | |
parent | 43d23f36297d030194c5c82a0593eb7eddcb4fbb (diff) |
[media] vivi: add support for VIDIOC_LOG_STATUS
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>
-rw-r--r-- | drivers/media/video/vivi.c | 9 |
1 files changed, 9 insertions, 0 deletions
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) | |||
958 | return vb2_streamoff(&dev->vb_vidq, i); | 958 | return vb2_streamoff(&dev->vb_vidq, i); |
959 | } | 959 | } |
960 | 960 | ||
961 | static int vidioc_log_status(struct file *file, void *priv) | ||
962 | { | ||
963 | struct vivi_dev *dev = video_drvdata(file); | ||
964 | |||
965 | v4l2_ctrl_handler_log_status(&dev->ctrl_handler, dev->v4l2_dev.name); | ||
966 | return 0; | ||
967 | } | ||
968 | |||
961 | static int vidioc_s_std(struct file *file, void *priv, v4l2_std_id *i) | 969 | static int vidioc_s_std(struct file *file, void *priv, v4l2_std_id *i) |
962 | { | 970 | { |
963 | return 0; | 971 | return 0; |
@@ -1201,6 +1209,7 @@ static const struct v4l2_ioctl_ops vivi_ioctl_ops = { | |||
1201 | .vidioc_s_input = vidioc_s_input, | 1209 | .vidioc_s_input = vidioc_s_input, |
1202 | .vidioc_streamon = vidioc_streamon, | 1210 | .vidioc_streamon = vidioc_streamon, |
1203 | .vidioc_streamoff = vidioc_streamoff, | 1211 | .vidioc_streamoff = vidioc_streamoff, |
1212 | .vidioc_log_status = vidioc_log_status, | ||
1204 | .vidioc_subscribe_event = vidioc_subscribe_event, | 1213 | .vidioc_subscribe_event = vidioc_subscribe_event, |
1205 | .vidioc_unsubscribe_event = v4l2_event_unsubscribe, | 1214 | .vidioc_unsubscribe_event = v4l2_event_unsubscribe, |
1206 | }; | 1215 | }; |