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:
|
||
---|---|---|
.. | ||
dw100 | ||
imx-jpeg | ||
imx8-isi | ||
imx-mipi-csis.c | ||
imx-pxp.c | ||
imx-pxp.h | ||
imx7-media-csi.c | ||
Kconfig | ||
Makefile | ||
mx2_emmaprp.c |