summaryrefslogtreecommitdiffstats
path: root/drivers/media/common/saa7146_video.c
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2012-05-01 17:04:52 +0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-05-14 20:00:03 +0200
commit537fa492e084af58d16899f8d0f3f3516a4fbe7c (patch)
tree73486cf2548394a597c230818c7cb40a2eba7b2c /drivers/media/common/saa7146_video.c
parent[media] saa7146: rename vbi/video_q to vbi/video_dmaq (diff)
downloadlinux-537fa492e084af58d16899f8d0f3f3516a4fbe7c.tar.xz
linux-537fa492e084af58d16899f8d0f3f3516a4fbe7c.zip
[media] saa7146: support control events and priority handling
Use v4l2_fh which gives you control events and priority handling for free. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/common/saa7146_video.c')
-rw-r--r--drivers/media/common/saa7146_video.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/media/common/saa7146_video.c b/drivers/media/common/saa7146_video.c
index 850799051bef..4ca9a2561513 100644
--- a/drivers/media/common/saa7146_video.c
+++ b/drivers/media/common/saa7146_video.c
@@ -2,6 +2,8 @@
#include <media/saa7146_vv.h>
#include <media/v4l2-chip-ident.h>
+#include <media/v4l2-event.h>
+#include <media/v4l2-ctrls.h>
#include <linux/module.h>
static int max_memory = 32;
@@ -1021,6 +1023,8 @@ const struct v4l2_ioctl_ops saa7146_video_ioctl_ops = {
.vidioc_streamon = vidioc_streamon,
.vidioc_streamoff = vidioc_streamoff,
.vidioc_g_parm = vidioc_g_parm,
+ .vidioc_subscribe_event = v4l2_ctrl_subscribe_event,
+ .vidioc_unsubscribe_event = v4l2_event_unsubscribe,
};
/*********************************************************************************/