linux/drivers/staging/media
Hans de Goede adea153b4f media: atomisp-ov2680: Fix ov2680_set_fmt()
On sets actually store the set (closest) format inside ov2680_device.dev,
so that it also properly gets returned by get_fmt.

This fixes the following problem:

1. App does an VIDIOC_SET_FMT 640x480, calling ov2680_set_fmt()
2. Internal buffers (atomisp_create_pipes_stream()) get allocated
   at 640x480 size by atomisp_set_fmt()
3. ov2680_get_fmt() gets called later on and returns 1600x1200
   since ov2680_device.dev was not updated. So things get configured
   to stream at 1600x1200, but the internal buffers created during
   atomisp_create_pipes_stream() do not get updated in size
4. streaming starts, internal buffers overflow and the entire
   machine freezes eventually due to memory being corrupted

Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
2022-09-24 09:30:31 +02:00
..
atomisp media: atomisp-ov2680: Fix ov2680_set_fmt() 2022-09-24 09:30:31 +02:00
deprecated media: tm6000: Fix unused value in vidioc_try_fmt_vid_cap() 2022-08-30 07:30:20 +02:00
imx media: mc: convert pipeline funcs to take media_pad 2022-09-24 09:22:30 +02:00
ipu3 media: drivers: use video device pipeline start/stop 2022-09-24 09:14:20 +02:00
max96712 media: Kconfig: cleanup VIDEO_DEV dependencies 2022-03-18 05:58:35 +01:00
meson/vdec media: meson: vdec: fix possible refcount leak in vdec_probe() 2022-09-24 08:55:43 +02:00
omap4iss media: drivers: use video device pipeline start/stop 2022-09-24 09:14:20 +02:00
rkvdec media: rkvdec: Use vb2_find_buffer 2022-07-17 11:13:41 +01:00
sunxi media: cedrus: Fix endless loop in cedrus_h265_skip_bits() 2022-08-30 14:48:45 +02:00
tegra-video media: drivers: use video device pipeline start/stop 2022-09-24 09:14:20 +02:00
Kconfig media: destage Hantro VPU driver 2022-08-31 10:23:50 +02:00
Makefile media: destage Hantro VPU driver 2022-08-31 10:23:50 +02:00