media: vsp1: Fix YCbCr planar formats pitch calculation
authorKoji Matsuoka <koji.matsuoka.xm@renesas.com>
Thu, 26 Oct 2017 06:27:51 +0000 (02:27 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 17 Sep 2018 18:51:43 +0000 (14:51 -0400)
commit9b2798d5b71c50f64c41a40f0cbcae47c3fbd067
treea6e10d5d51b3e4409fd7daf816da9e0b48788a29
parentde2bc45c84f7f0c5b0be441c998035b70cbe4614
media: vsp1: Fix YCbCr planar formats pitch calculation

YCbCr planar formats can have different pitch values for the luma and
chroma planes. This isn't taken into account in the driver. Fix it.

Based on a BSP patch from Koji Matsuoka <koji.matsuoka.xm@renesas.com>.

Fixes: 7863ac504bc5 ("drm: rcar-du: Add tri-planar memory formats support")
[Updated documentation of the struct vsp1_du_atomic_config pitch field]

Signed-off-by: Koji Matsuoka <koji.matsuoka.xm@renesas.com>
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>
drivers/media/platform/vsp1/vsp1_drm.c
include/media/vsp1.h