summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/vsp1/vsp1_drm.h
diff options
context:
space:
mode:
authorLaurent Pinchart2018-02-22 20:26:21 +0100
committerMauro Carvalho Chehab2018-05-04 14:00:07 +0200
commit7ff667cfe3ae32929856847c2ad085dd2b43c71d (patch)
treeab6b5ece82d186b45e5984d56a95b012ba45774d /drivers/media/platform/vsp1/vsp1_drm.h
parentmedia: v4l: vsp1: Move DRM atomic commit pipeline setup to separate function (diff)
downloadkernel-qcow2-linux-7ff667cfe3ae32929856847c2ad085dd2b43c71d.tar.gz
kernel-qcow2-linux-7ff667cfe3ae32929856847c2ad085dd2b43c71d.tar.xz
kernel-qcow2-linux-7ff667cfe3ae32929856847c2ad085dd2b43c71d.zip
media: v4l: vsp1: Setup BRU at atomic commit time
To implement fully dynamic plane assignment to pipelines, we need to reassign the BRU and BRS to the DRM pipelines in the atomic commit handler. In preparation for this setup factor out the BRU source pad code and call it both at LIF setup and atomic commit time. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/platform/vsp1/vsp1_drm.h')
-rw-r--r--drivers/media/platform/vsp1/vsp1_drm.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/media/platform/vsp1/vsp1_drm.h b/drivers/media/platform/vsp1/vsp1_drm.h
index 9aa19325cbe9..c8dd75ba01f6 100644
--- a/drivers/media/platform/vsp1/vsp1_drm.h
+++ b/drivers/media/platform/vsp1/vsp1_drm.h
@@ -20,12 +20,17 @@
/**
* vsp1_drm_pipeline - State for the API exposed to the DRM driver
* @pipe: the VSP1 pipeline used for display
+ * @width: output display width
+ * @height: output display height
* @du_complete: frame completion callback for the DU driver (optional)
* @du_private: data to be passed to the du_complete callback
*/
struct vsp1_drm_pipeline {
struct vsp1_pipeline pipe;
+ unsigned int width;
+ unsigned int height;
+
/* Frame synchronisation */
void (*du_complete)(void *, bool);
void *du_private;