summaryrefslogtreecommitdiffstats
path: root/include/media
diff options
context:
space:
mode:
authorKieran Bingham <kieran.bingham+renesas@ideasonboard.com>2017-03-04 02:01:17 +0000
committerKieran Bingham <kieran.bingham+renesas@ideasonboard.com>2017-05-22 16:15:34 +0100
commitd7ade201ae7fa253808e42a4001a7738b9f69772 (patch)
treeef3acd04254623960bbff736cf2cbdfbdaf180a5 /include/media
parent348a00341efdaf582eb2cb86bddc4bb10406714d (diff)
downloadlinux-d7ade201ae7fa253808e42a4001a7738b9f69772.tar.gz
linux-d7ade201ae7fa253808e42a4001a7738b9f69772.tar.bz2
linux-d7ade201ae7fa253808e42a4001a7738b9f69772.zip
v4l: vsp1: Extend VSP1 module API to allow DRM callbacks
To be able to perform page flips in DRM without flicker we need to be able to notify the rcar-du module when the VSP has completed its processing. We must not have bidirectional dependencies on the two components to maintain support for loadable modules, thus we extend the API to allow a callback to be registered within the VSP DRM interface. Signed-off-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Acked-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'include/media')
-rw-r--r--include/media/vsp1.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/media/vsp1.h b/include/media/vsp1.h
index 38aac554dbba..c135c47b4641 100644
--- a/include/media/vsp1.h
+++ b/include/media/vsp1.h
@@ -24,10 +24,17 @@ int vsp1_du_init(struct device *dev);
* struct vsp1_du_lif_config - VSP LIF configuration
* @width: output frame width
* @height: output frame height
+ * @callback: frame completion callback function (optional). When a callback
+ * is provided, the VSP driver guarantees that it will be called once
+ * and only once for each vsp1_du_atomic_flush() call.
+ * @callback_data: data to be passed to the frame completion callback
*/
struct vsp1_du_lif_config {
unsigned int width;
unsigned int height;
+
+ void (*callback)(void *);
+ void *callback_data;
};
int vsp1_du_setup_lif(struct device *dev, const struct vsp1_du_lif_config *cfg);