aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/video4linux
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@iki.fi>2012-01-23 01:03:00 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-05-14 07:44:52 -0400
commit48398f932b4ddcc8fa9a890595645cc14f6889a8 (patch)
tree23c3904ed3efe98665ebcb33abfb9c7625cf0960 /Documentation/video4linux
parentaf88be3887c1a0b20d0792c3c237a67c73ef3286 (diff)
[media] v4l: Improve sub-device documentation for pad ops
Document that format related configuration is done through pad ops in case the driver does use the media framework. Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'Documentation/video4linux')
-rw-r--r--Documentation/video4linux/v4l2-framework.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/Documentation/video4linux/v4l2-framework.txt b/Documentation/video4linux/v4l2-framework.txt
index 369d4bc87828..493ffd1b1cf5 100644
--- a/Documentation/video4linux/v4l2-framework.txt
+++ b/Documentation/video4linux/v4l2-framework.txt
@@ -266,11 +266,16 @@ struct v4l2_subdev_video_ops {
266 ... 266 ...
267}; 267};
268 268
269struct v4l2_subdev_pad_ops {
270 ...
271};
272
269struct v4l2_subdev_ops { 273struct v4l2_subdev_ops {
270 const struct v4l2_subdev_core_ops *core; 274 const struct v4l2_subdev_core_ops *core;
271 const struct v4l2_subdev_tuner_ops *tuner; 275 const struct v4l2_subdev_tuner_ops *tuner;
272 const struct v4l2_subdev_audio_ops *audio; 276 const struct v4l2_subdev_audio_ops *audio;
273 const struct v4l2_subdev_video_ops *video; 277 const struct v4l2_subdev_video_ops *video;
278 const struct v4l2_subdev_pad_ops *video;
274}; 279};
275 280
276The core ops are common to all subdevs, the other categories are implemented 281The core ops are common to all subdevs, the other categories are implemented
@@ -307,6 +312,10 @@ Don't forget to cleanup the media entity before the sub-device is destroyed:
307 312
308 media_entity_cleanup(&sd->entity); 313 media_entity_cleanup(&sd->entity);
309 314
315If the subdev driver intends to process video and integrate with the media
316framework, it must implement format related functionality using
317v4l2_subdev_pad_ops instead of v4l2_subdev_video_ops.
318
310A device (bridge) driver needs to register the v4l2_subdev with the 319A device (bridge) driver needs to register the v4l2_subdev with the
311v4l2_device: 320v4l2_device:
312 321