diff options
Diffstat (limited to 'include/media/media-entity.h')
-rw-r--r-- | include/media/media-entity.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/media/media-entity.h b/include/media/media-entity.h index d889dcc67d0d..cd8bca63a502 100644 --- a/include/media/media-entity.h +++ b/include/media/media-entity.h | |||
@@ -26,6 +26,9 @@ | |||
26 | #include <linux/list.h> | 26 | #include <linux/list.h> |
27 | #include <linux/media.h> | 27 | #include <linux/media.h> |
28 | 28 | ||
29 | struct media_pipeline { | ||
30 | }; | ||
31 | |||
29 | struct media_link { | 32 | struct media_link { |
30 | struct media_pad *source; /* Source pad */ | 33 | struct media_pad *source; /* Source pad */ |
31 | struct media_pad *sink; /* Sink pad */ | 34 | struct media_pad *sink; /* Sink pad */ |
@@ -71,8 +74,11 @@ struct media_entity { | |||
71 | * purpose: a simple WARN_ON(<0) check can be used to detect reference | 74 | * purpose: a simple WARN_ON(<0) check can be used to detect reference |
72 | * count bugs that would make them negative. | 75 | * count bugs that would make them negative. |
73 | */ | 76 | */ |
77 | int stream_count; /* Stream count for the entity. */ | ||
74 | int use_count; /* Use count for the entity. */ | 78 | int use_count; /* Use count for the entity. */ |
75 | 79 | ||
80 | struct media_pipeline *pipe; /* Pipeline this entity belongs to. */ | ||
81 | |||
76 | union { | 82 | union { |
77 | /* Node specifications */ | 83 | /* Node specifications */ |
78 | struct { | 84 | struct { |
@@ -118,6 +124,7 @@ struct media_entity_graph { | |||
118 | int media_entity_init(struct media_entity *entity, u16 num_pads, | 124 | int media_entity_init(struct media_entity *entity, u16 num_pads, |
119 | struct media_pad *pads, u16 extra_links); | 125 | struct media_pad *pads, u16 extra_links); |
120 | void media_entity_cleanup(struct media_entity *entity); | 126 | void media_entity_cleanup(struct media_entity *entity); |
127 | |||
121 | int media_entity_create_link(struct media_entity *source, u16 source_pad, | 128 | int media_entity_create_link(struct media_entity *source, u16 source_pad, |
122 | struct media_entity *sink, u16 sink_pad, u32 flags); | 129 | struct media_entity *sink, u16 sink_pad, u32 flags); |
123 | int __media_entity_setup_link(struct media_link *link, u32 flags); | 130 | int __media_entity_setup_link(struct media_link *link, u32 flags); |
@@ -133,6 +140,9 @@ void media_entity_graph_walk_start(struct media_entity_graph *graph, | |||
133 | struct media_entity *entity); | 140 | struct media_entity *entity); |
134 | struct media_entity * | 141 | struct media_entity * |
135 | media_entity_graph_walk_next(struct media_entity_graph *graph); | 142 | media_entity_graph_walk_next(struct media_entity_graph *graph); |
143 | void media_entity_pipeline_start(struct media_entity *entity, | ||
144 | struct media_pipeline *pipe); | ||
145 | void media_entity_pipeline_stop(struct media_entity *entity); | ||
136 | 146 | ||
137 | #define media_entity_call(entity, operation, args...) \ | 147 | #define media_entity_call(entity, operation, args...) \ |
138 | (((entity)->ops && (entity)->ops->operation) ? \ | 148 | (((entity)->ops && (entity)->ops->operation) ? \ |