1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/media/platform/nxp
Fabio Estevam 2908042a37 media: imx: imx7-media-csi: Fix applying format constraints
v4l_bound_align_image() aligns to a multiple of 2 to the power of
walign, not to walign. Depending on the pixel format, this causes the
image width to be aligned to 16 or 256 pixels instead of 4 or 8 as
required by the hardware. Fix it by rounding and clamping the width and
height manually.

Closes: https://lore.kernel.org/linux-media/CAJ+vNU0BOVLTL17ofgHwtexbpuMYwH_aGUC==EXABUtHHiv_ag@mail.gmail.com

Reported-by: Tim Harvey <tharvey@gateworks.com>
Fixes: 6f482c4729 ("media: imx: imx7-media-csi: Get rid of superfluous call to imx7_csi_mbus_fmt_to_pix_fmt")
Co-developed-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Signed-off-by: Fabio Estevam <festevam@denx.de>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
2023-08-09 13:31:37 +02:00
..
dw100 media: dw100: Convert to platform remove callback returning void 2023-04-11 16:59:15 +02:00
imx-jpeg media: imx-jpeg: Support to assign slot for encoder/decoder 2023-07-14 09:14:09 +02:00
imx8-isi media: nxp: remove unneeded semicolon 2023-05-25 16:21:21 +02:00
imx-mipi-csis.c media: imx-mipi-csis: Convert to platform remove callback returning void 2023-04-11 16:59:16 +02:00
imx-pxp.c media: imx-pxp: Convert to platform remove callback returning void 2023-04-11 16:59:16 +02:00
imx-pxp.h media: platform: place NXP drivers on a separate dir 2022-03-14 09:42:59 +01:00
imx7-media-csi.c media: imx: imx7-media-csi: Fix applying format constraints 2023-08-09 13:31:37 +02:00
Kconfig media: nxp: Add i.MX8 ISI driver 2023-04-16 07:35:06 +01:00
Makefile media: nxp: Add i.MX8 ISI driver 2023-04-16 07:35:06 +01:00
mx2_emmaprp.c media: mx2_emmaprp: Convert to platform remove callback returning void 2023-04-11 16:59:16 +02:00