diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2012-07-18 15:54:59 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-07-31 00:20:10 +0200 |
commit | 97a3c902e98d772f4310e81d44a27db0d1cf4ddd (patch) | |
tree | 227f87c9ef4be071c141e6aed0a6d01628eb9cd0 /drivers/media/video/mem2mem_testdev.c | |
parent | [media] v4l2-mem2mem: support events in v4l2_m2m_poll (diff) | |
download | linux-97a3c902e98d772f4310e81d44a27db0d1cf4ddd.tar.xz linux-97a3c902e98d772f4310e81d44a27db0d1cf4ddd.zip |
[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/video/mem2mem_testdev.c')
-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 @@ #include <media/v4l2-device.h> #include <media/v4l2-ioctl.h> #include <media/v4l2-ctrls.h> +#include <media/v4l2-event.h> #include <media/videobuf2-vmalloc.h> #define MEM2MEM_TEST_MODULE_NAME "mem2mem-testdev" @@ -738,6 +739,8 @@ static const struct v4l2_ioctl_ops m2mtest_ioctl_ops = { .vidioc_streamon = vidioc_streamon, .vidioc_streamoff = vidioc_streamoff, + .vidioc_subscribe_event = v4l2_ctrl_subscribe_event, + .vidioc_unsubscribe_event = v4l2_event_unsubscribe, }; |