media: rkisp1: Fix line stride calculation
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Thu, 27 Apr 2023 08:43:17 +0000 (11:43 +0300)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Thu, 12 Oct 2023 07:46:37 +0000 (09:46 +0200)
commit5964c90a04291e1fb94d65b5641b526316e48830
treedd3289c47b379619996fd21728c1480c6752109e
parent1f3ba4b8d4bb54cdbe46a372081bdcbc6632c602
media: rkisp1: Fix line stride calculation

The line stride is expressed in the hardware as a number of pixels for
the first plane. The bytesperline must thus be a multiple of the first
plane's bpp value. Enforce this constraint.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/platform/rockchip/rkisp1/rkisp1-capture.c