aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/video4linux
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@iki.fi>2010-03-03 10:49:38 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-03-21 19:32:42 -0400
commit02adb1cc765b8c29dc83c6602bda19003cce62f1 (patch)
tree067fd5a73251f6dc33567926c409a0b1070710ab /Documentation/video4linux
parentea8aa4349e11c62242a8908fc172de27d7a151d7 (diff)
[media] v4l: subdev: Events support
Provide v4l2_subdevs with v4l2_event support. Subdev drivers only need very little to support events. Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi> Signed-off-by: David Cohen <dacohen@gmail.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'Documentation/video4linux')
-rw-r--r--Documentation/video4linux/v4l2-framework.txt18
1 files changed, 18 insertions, 0 deletions
diff --git a/Documentation/video4linux/v4l2-framework.txt b/Documentation/video4linux/v4l2-framework.txt
index 1feecfc59c3d..eb8479565dc4 100644
--- a/Documentation/video4linux/v4l2-framework.txt
+++ b/Documentation/video4linux/v4l2-framework.txt
@@ -350,6 +350,24 @@ VIDIOC_TRY_EXT_CTRLS
350 controls can be also be accessed through one (or several) V4L2 device 350 controls can be also be accessed through one (or several) V4L2 device
351 nodes. 351 nodes.
352 352
353VIDIOC_DQEVENT
354VIDIOC_SUBSCRIBE_EVENT
355VIDIOC_UNSUBSCRIBE_EVENT
356
357 The events ioctls are identical to the ones defined in V4L2. They
358 behave identically, with the only exception that they deal only with
359 events generated by the sub-device. Depending on the driver, those
360 events can also be reported by one (or several) V4L2 device nodes.
361
362 Sub-device drivers that want to use events need to set the
363 V4L2_SUBDEV_USES_EVENTS v4l2_subdev::flags and initialize
364 v4l2_subdev::nevents to events queue depth before registering the
365 sub-device. After registration events can be queued as usual on the
366 v4l2_subdev::devnode device node.
367
368 To properly support events, the poll() file operation is also
369 implemented.
370
353 371
354I2C sub-device drivers 372I2C sub-device drivers
355---------------------- 373----------------------