diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2012-07-18 09:54:59 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-07-30 18:20:10 -0400 |
commit | 97a3c902e98d772f4310e81d44a27db0d1cf4ddd (patch) | |
tree | 227f87c9ef4be071c141e6aed0a6d01628eb9cd0 /drivers/media | |
parent | 08eb85100d114a907e01c76d52d5c95eb4100d20 (diff) |
[media] mem2mem_testdev: add control events support
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/video/mem2mem_testdev.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/video/mem2mem_testdev.c b/drivers/media/video/mem2mem_testdev.c index fe8c565f35a1..f7a2a2d635f5 100644 --- a/drivers/media/video/mem2mem_testdev.c +++ b/drivers/media/video/mem2mem_testdev.c | |||
@@ -28,6 +28,7 @@ | |||
28 | #include <media/v4l2-device.h> | 28 | #include <media/v4l2-device.h> |
29 | #include <media/v4l2-ioctl.h> | 29 | #include <media/v4l2-ioctl.h> |
30 | #include <media/v4l2-ctrls.h> | 30 | #include <media/v4l2-ctrls.h> |
31 | #include <media/v4l2-event.h> | ||
31 | #include <media/videobuf2-vmalloc.h> | 32 | #include <media/videobuf2-vmalloc.h> |
32 | 33 | ||
33 | #define MEM2MEM_TEST_MODULE_NAME "mem2mem-testdev" | 34 | #define MEM2MEM_TEST_MODULE_NAME "mem2mem-testdev" |
@@ -738,6 +739,8 @@ static const struct v4l2_ioctl_ops m2mtest_ioctl_ops = { | |||
738 | 739 | ||
739 | .vidioc_streamon = vidioc_streamon, | 740 | .vidioc_streamon = vidioc_streamon, |
740 | .vidioc_streamoff = vidioc_streamoff, | 741 | .vidioc_streamoff = vidioc_streamoff, |
742 | .vidioc_subscribe_event = v4l2_ctrl_subscribe_event, | ||
743 | .vidioc_unsubscribe_event = v4l2_event_unsubscribe, | ||
741 | }; | 744 | }; |
742 | 745 | ||
743 | 746 | ||