linux/drivers/staging/media
Hans de Goede 795ac295ea media: atomisp: Fix VIDIOC_REQBUFS failing when VIDIOC_S_FMT has not been called yet
camorama calls VIDIOC_REQBUFS(V4L2_MEMORY_MMAP) to test if MMAP support
works (this was added specifically because of the previously broken
MMAP support in atomisp).

Currently this fails because atomisp_get_css_frame_info() fails in this
case. Although it is weird to call VIDIOC_REQBUFS before VIDIOC_S_FMT,
it is allowed to do this.

Fix this not working by doing a S_FMT to V4L2_PIX_FMT_YUV420 + the highest
supported resolution.

Note this will cause camorama to use mmap mode, which means it will also
use libv4l2 to do format conversion. libv4l2 will pick V4L2_PIX_FMT_RGB565
as input format and this will lead to a garbled video display. This is
a libv4lconvert bug, the RGB565 -> RGB24 path in libv4lconvert assumes
that stride == width which is not true on the atomisp.

I've already send out a libv4lconvert fix for this. Also this can be worked
around by passing --dont-use-libv4l2 as argument to camorama.

Link: https://git.linuxtv.org/v4l-utils.git/commit/?id=aecfcfccfc2f78d7531456ffa5465666c6bc641e

Reviewed-by: Andy Shevchenko <andy@kernel.org>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
2022-11-25 08:15:22 +00:00
..
atomisp media: atomisp: Fix VIDIOC_REQBUFS failing when VIDIOC_S_FMT has not been called yet 2022-11-25 08:15:22 +00:00
deprecated media: atmel: atmel-isc: move to staging 2022-11-25 07:48:31 +00:00
imx media: mc: convert pipeline funcs to take media_pad 2022-09-24 09:22:30 +02:00
ipu3 ipu3-imgu: Fix NULL pointer dereference in imgu_subdev_set_selection() 2022-10-25 10:37:02 +03:00
max96712 i2c: Make remove callback return void 2022-08-16 12:46:26 +02:00
meson/vdec media: staging: media: meson: vdec: use min() for comparison and assignment 2022-11-25 07:32:49 +00:00
omap4iss media: drivers: use video device pipeline start/stop 2022-09-24 09:14:20 +02:00
rkvdec media: rkvdec: Add required padding 2022-11-04 16:56:42 +01:00
sunxi media: staging: media: sunxi: cedrus: make vb2_ops struct definition const 2022-11-25 07:38:36 +00:00
tegra-video media: staging: media: tegra-video: Replace custom implementation of device_match_fwnode() 2022-11-25 06:44:47 +00:00
Kconfig media: atmel: atmel-isc: move to staging 2022-11-25 07:48:31 +00:00
Makefile media: atmel: atmel-isc: move to staging 2022-11-25 07:48:31 +00:00