linux/drivers/staging/media
Hans de Goede 4361af8510 media: atomisp: Refactor atomisp_adjust_fmt()
Refactor atomisp_adjust_fmt():

1. The block starting at "format_bridge = atomisp_get_format_bridge(...)"
and ending with "if (field == V4L2_FIELD_ANY) field = V4L2_FIELD_NONE;"
is duplicated. With only the second block:
a) Properly checking that format_bridge is not NULL; amd
b) Having the special handling for IA_CSS_FRAME_FORMAT_RAW

Remove the first block.

2. On a NULL return from atomisp_get_format_bridge(f->fmt.pix.pixelformat)
fall back to V4L2_PIX_FMT_YUV420 just like in the IA_CSS_FRAME_FORMAT_RAW
case. atomisp_adjust_fmt() is used in VIDIOC_TRY_FMT handling and that
should jusy pick a fmt rather then returning -EINVAL.

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:45 +00:00
..
atomisp media: atomisp: Refactor atomisp_adjust_fmt() 2022-11-25 08:15:45 +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