linux/drivers/media
Laurent Pinchart efa28efd9c media: rkisp1: resizer: Stop manual allocation of v4l2_subdev_state
Supported media bus codes on the resizer sink pad are identical to the
ISP source pad. The .enum_mbus_code() handler thus delegates the
enumeration to the ISP's operation. This is problematic for two
reasons:

- Format enumeration on the ISP source pad is dependent on the format
  configured on the ISP sink pad for the same subdev state (TRY or
  ACTIVE), while format enumeration on the resizer sink pad should
  return all formats supported by the resizer subdev, regardless of the
  ISP configuration.

- Delegating the operation involves creating a fake v4l2_subdev_state on
  the stack to pass to the ISP .enum_mbus_code() handler. This gets in
  the way of evolution of both the ISP enumeration handler and, more
  generally, the V4L2 subdev state infrastructure.

Fix those two issues by implementing format enumeration manually for the
resizer.

Link: https://lore.kernel.org/r/20231126020948.2700-1-laurent.pinchart@ideasonboard.com

Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
2023-12-09 07:47:10 +01:00
..
cec media: platform: cros-ec: Add Dexi to the match table 2023-11-23 13:39:09 +01:00
common media: videobuf2: request more buffers for vb2_read 2023-12-09 07:34:10 +01:00
dvb-core media: dvb-core: Do not initialize twice queue num_buffer field 2023-11-23 12:10:06 +01:00
dvb-frontends media: dvb-frontends: rtl2832: Stop direct calls to queue num_buffers field 2023-11-23 12:10:32 +01:00
firewire media: firewire: firedtv-avc.c: replace BUG with proper, error return 2023-08-10 07:58:37 +02:00
i2c media: ov9640: Don't set format in sub-device state 2023-12-08 10:04:12 +01:00
mc media: drop CONFIG_MEDIA_CONTROLLER_REQUEST_API 2023-11-23 13:03:45 +01:00
mmc media: media/*/Kconfig: sort entries 2022-03-18 05:58:35 +01:00
pci media: bttv: add back vbi hack 2023-12-09 07:31:20 +01:00
platform media: rkisp1: resizer: Stop manual allocation of v4l2_subdev_state 2023-12-09 07:47:10 +01:00
radio media: radio-si476x: don't fill in bus_info 2023-09-27 10:47:23 +02:00
rc media: meson-ir-tx: Drop usage of platform_driver_probe() 2023-11-16 13:56:48 +01:00
spi media updates for v5.18-rc1 2022-03-23 14:51:35 -07:00
test-drivers media: visl: Add AV1 support 2023-12-07 08:31:14 +01:00
tuners media: dvb: symbol fixup for dvb_attach() 2023-09-09 08:15:11 +01:00
usb media: uvcvideo: Fix power line control for SunplusIT camera 2023-12-09 07:37:33 +01:00
v4l2-core media: v4l: async: Drop useless list move operation 2023-12-04 11:21:47 +01:00
Kconfig media: Kconfig: Make DVB_CORE=m possible when MEDIA_SUPPORT=y 2022-12-07 17:58:46 +01:00
Makefile