Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 306276
b: refs/heads/master
c: 48398f9
h: refs/heads/master
v: v3
  • Loading branch information
Sakari Ailus authored and Mauro Carvalho Chehab committed May 14, 2012
1 parent 75dcabe commit dde254b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: af88be3887c1a0b20d0792c3c237a67c73ef3286
refs/heads/master: 48398f932b4ddcc8fa9a890595645cc14f6889a8
9 changes: 9 additions & 0 deletions trunk/Documentation/video4linux/v4l2-framework.txt
Original file line number Diff line number Diff line change
Expand Up @@ -266,11 +266,16 @@ struct v4l2_subdev_video_ops {
...
};

struct v4l2_subdev_pad_ops {
...
};

struct v4l2_subdev_ops {
const struct v4l2_subdev_core_ops *core;
const struct v4l2_subdev_tuner_ops *tuner;
const struct v4l2_subdev_audio_ops *audio;
const struct v4l2_subdev_video_ops *video;
const struct v4l2_subdev_pad_ops *video;
};

The core ops are common to all subdevs, the other categories are implemented
Expand Down Expand Up @@ -307,6 +312,10 @@ Don't forget to cleanup the media entity before the sub-device is destroyed:

media_entity_cleanup(&sd->entity);

If the subdev driver intends to process video and integrate with the media
framework, it must implement format related functionality using
v4l2_subdev_pad_ops instead of v4l2_subdev_video_ops.

A device (bridge) driver needs to register the v4l2_subdev with the
v4l2_device:

Expand Down

0 comments on commit dde254b

Please sign in to comment.