media: vsp1: drm: Extend frame completion API to the DU driver
The VSP1 driver will need to pass extra flags to the DU through the frame completion API. Replace the completed bool flag by a bitmask to support this. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com> Reviewed-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:
@@ -17,6 +17,8 @@ struct device;
|
||||
|
||||
int vsp1_du_init(struct device *dev);
|
||||
|
||||
#define VSP1_DU_STATUS_COMPLETE BIT(0)
|
||||
|
||||
/**
|
||||
* struct vsp1_du_lif_config - VSP LIF configuration
|
||||
* @width: output frame width
|
||||
@@ -32,7 +34,7 @@ struct vsp1_du_lif_config {
|
||||
unsigned int height;
|
||||
bool interlaced;
|
||||
|
||||
void (*callback)(void *data, bool completed, u32 crc);
|
||||
void (*callback)(void *data, unsigned int status, u32 crc);
|
||||
void *callback_data;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user