linux/drivers/media
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
..
cec media: pulse8-cec: handle possible ping error 2023-07-14 09:14:09 +02:00
common media: common: saa7146: Avoid a leak in vmalloc_to_sg() 2023-05-25 16:21:20 +02:00
dvb-core media updates for v6.5-rc1 2023-07-05 10:42:32 -07:00
dvb-frontends media: dvb: mb86a20s: get rid of a clang-15 warning 2023-06-28 15:06:16 +02:00
firewire media: Makefiles: remove extra spaces 2022-03-12 16:59:52 +01:00
i2c media: tc358746: Address compiler warnings 2023-07-14 09:14:09 +02:00
mc media: mc: Make media_get_pad_index() use pad type flag 2023-05-25 16:21:22 +02:00
mmc media: media/*/Kconfig: sort entries 2022-03-18 05:58:35 +01:00
pci media: pci: cx23885: fix error handling for cx23885 ATSC boards 2023-07-14 09:14:09 +02:00
platform media: imx: imx7-media-csi: Fix applying format constraints 2023-08-09 13:31:37 +02:00
radio media: wl128x: fix a clang warning 2023-06-29 09:56:13 +02:00
rc media: add HAS_IOPORT dependencies 2023-06-28 11:09:25 +02:00
spi media updates for v5.18-rc1 2022-03-23 14:51:35 -07:00
test-drivers media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
tuners media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
usb media: uvcvideo: Fix menu count handling for userspace XU mappings 2023-07-28 10:20:10 +02:00
v4l2-core media updates for v6.5-rc1 2023-07-05 10:42:32 -07:00
Kconfig media: Kconfig: Make DVB_CORE=m possible when MEDIA_SUPPORT=y 2022-12-07 17:58:46 +01:00
Makefile media: Makefiles: remove extra spaces 2022-03-12 16:59:52 +01:00