@@ -61,6 +61,8 @@ struct media_entity_notify {
* request (and thus the buffer) must be available to the driver.
* And once a buffer is queued, then the driver can complete
* or delete objects from the request before req_queue exits.
+ * @graph_complete: Check if the media device graph is complete and all entries
+ * have been added to the graph.
*/
struct media_device_ops {
int (*link_notify)(struct media_link *link, u32 flags,
@@ -69,6 +71,7 @@ struct media_device_ops {
void (*req_free)(struct media_request *req);
int (*req_validate)(struct media_request *req);
void (*req_queue)(struct media_request *req);
+ bool (*graph_complete)(struct media_device *mdev);
};
/**
Add a new graph_complete operation to struct media_device_ops. The callback is optional to implement. If it's implemented it shall return the status about the media graphs completes. If all entities that the media device could contain is registered in the graph it shall return true, otherwise false. Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> --- include/media/media-device.h | 3 +++ 1 file changed, 3 insertions(+)