aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/vimc/vimc-common.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/platform/vimc/vimc-common.h')
-rw-r--r--drivers/media/platform/vimc/vimc-common.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/media/platform/vimc/vimc-common.h b/drivers/media/platform/vimc/vimc-common.h
index 73e7e9479956..60ebde28f56b 100644
--- a/drivers/media/platform/vimc/vimc-common.h
+++ b/drivers/media/platform/vimc/vimc-common.h
@@ -45,6 +45,9 @@ struct vimc_pix_map {
45 * @pads: the list of pads of the node 45 * @pads: the list of pads of the node
46 * @destroy: callback to destroy the node 46 * @destroy: callback to destroy the node
47 * @process_frame: callback send a frame to that node 47 * @process_frame: callback send a frame to that node
48 * @vdev_get_format: callback that returns the current format a pad, used
49 * only when is_media_entity_v4l2_video_device(ent) returns
50 * true
48 * 51 *
49 * Each node of the topology must create a vimc_ent_device struct. Depending on 52 * Each node of the topology must create a vimc_ent_device struct. Depending on
50 * the node it will be of an instance of v4l2_subdev or video_device struct 53 * the node it will be of an instance of v4l2_subdev or video_device struct
@@ -60,6 +63,8 @@ struct vimc_ent_device {
60 void (*destroy)(struct vimc_ent_device *); 63 void (*destroy)(struct vimc_ent_device *);
61 void (*process_frame)(struct vimc_ent_device *ved, 64 void (*process_frame)(struct vimc_ent_device *ved,
62 struct media_pad *sink, const void *frame); 65 struct media_pad *sink, const void *frame);
66 void (*vdev_get_format)(struct vimc_ent_device *ved,
67 struct v4l2_pix_format *fmt);
63}; 68};
64 69
65/** 70/**
@@ -160,4 +165,13 @@ int vimc_ent_sd_register(struct vimc_ent_device *ved,
160void vimc_ent_sd_unregister(struct vimc_ent_device *ved, 165void vimc_ent_sd_unregister(struct vimc_ent_device *ved,
161 struct v4l2_subdev *sd); 166 struct v4l2_subdev *sd);
162 167
168/**
169 * vimc_link_validate - validates a media link
170 *
171 * @link: pointer to &struct media_link
172 *
173 * This function calls validates if a media link is valid for streaming.
174 */
175int vimc_link_validate(struct media_link *link);
176
163#endif 177#endif