diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2009-12-09 06:38:49 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-03-21 19:32:42 -0400 |
commit | 2096a5dcf9704f5a86ecba37169eb813aaf0431c (patch) | |
tree | 21e7d870302a7c6748667a785b465a7a84805228 /Documentation | |
parent | 0070d91e5b5ae594116202ab7d62d8264830b1cd (diff) |
[media] v4l: subdev: Add device node support
Create a device node named subdevX for every registered subdev.
As the device node is registered before the subdev core::s_config
function is called, return -EGAIN on open until initialization
completes.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Vimarsh Zutshi <vimarsh.zutshi@gmail.com>
Acked-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/video4linux/v4l2-framework.txt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Documentation/video4linux/v4l2-framework.txt b/Documentation/video4linux/v4l2-framework.txt index f22f35c271f3..8b358710b2f7 100644 --- a/Documentation/video4linux/v4l2-framework.txt +++ b/Documentation/video4linux/v4l2-framework.txt | |||
@@ -319,6 +319,22 @@ controlled through GPIO pins. This distinction is only relevant when setting | |||
319 | up the device, but once the subdev is registered it is completely transparent. | 319 | up the device, but once the subdev is registered it is completely transparent. |
320 | 320 | ||
321 | 321 | ||
322 | V4L2 sub-device userspace API | ||
323 | ----------------------------- | ||
324 | |||
325 | Beside exposing a kernel API through the v4l2_subdev_ops structure, V4L2 | ||
326 | sub-devices can also be controlled directly by userspace applications. | ||
327 | |||
328 | Device nodes named v4l-subdevX can be created in /dev to access sub-devices | ||
329 | directly. If a sub-device supports direct userspace configuration it must set | ||
330 | the V4L2_SUBDEV_FL_HAS_DEVNODE flag before being registered. | ||
331 | |||
332 | After registering sub-devices, the v4l2_device driver can create device nodes | ||
333 | for all registered sub-devices marked with V4L2_SUBDEV_FL_HAS_DEVNODE by calling | ||
334 | v4l2_device_register_subdev_nodes(). Those device nodes will be automatically | ||
335 | removed when sub-devices are unregistered. | ||
336 | |||
337 | |||
322 | I2C sub-device drivers | 338 | I2C sub-device drivers |
323 | ---------------------- | 339 | ---------------------- |
324 | 340 | ||