diff options
Diffstat (limited to 'Documentation/video4linux/v4l2-framework.txt')
-rw-r--r-- | Documentation/video4linux/v4l2-framework.txt | 18 |
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 | ||
353 | VIDIOC_DQEVENT | ||
354 | VIDIOC_SUBSCRIBE_EVENT | ||
355 | VIDIOC_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 | ||
354 | I2C sub-device drivers | 372 | I2C sub-device drivers |
355 | ---------------------- | 373 | ---------------------- |