linux/drivers/media
Laurent Pinchart 7603ac5a8a media: vimc: scaler: Use subdev active state
Store the active formats and crop rectangle in the subdevice active
state. This simplifies implementation of the format and selection
accessors, and allows using the v4l2_subdev_get_fmt() helper to
implement the .get_fmt() operation.

The active configuration that is used in the .process_frame() handler is
still stored in the vimc_scaler_device structure. The driver could
instead access the active state in the .process_frame() handler, but the
required locking could interfere with the real time constraints of the
frame processing. This data would be stored in registers in the
.s_stream() handler for real hardware, storing it in dedicated storage
thus mimics a real driver. To differentiate them from the rest of the
device private data, move the corresponding fields to a sub-structure of
vimc_scaler_device named hw.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2024-06-26 16:39:34 +02:00
..
cec Mainly singleton patches, documented in their respective changelogs. 2024-05-19 14:02:03 -07:00
common media: videobuf2: core: Drop unneeded forward declaration 2024-06-19 19:43:10 +03:00
dvb-core media: dvbdev: Initialize sbuf 2024-04-08 13:48:19 +02:00
dvb-frontends media: dvb-frontend/mxl5xx: Refactor struct MBIN_FILE_T and MBIN_SEGMENT_T 2024-06-15 10:49:21 +02:00
firewire media: firewire: firedtv-avc.c: replace BUG with proper, error return 2023-08-10 07:58:37 +02:00
i2c Miscellaneous fixes for V4L2 core and drivers 2024-06-26 15:29:04 +02:00
mc media: mc: mark the media devnode as registered from the, start 2024-04-22 11:41:04 +02:00
mmc media: mmc: siano: simplify module initialization 2024-04-08 13:48:19 +02:00
pci media: Convert from tasklet to BH workqueue 2024-06-21 08:57:09 +02:00
platform Miscellaneous fixes for V4L2 core and drivers 2024-06-26 15:29:04 +02:00
radio media: Convert from tasklet to BH workqueue 2024-06-21 08:57:09 +02:00
rc media: Convert from tasklet to BH workqueue 2024-06-21 08:57:09 +02:00
spi media: gs1662: remove unused struct 'gs_reg_fmt_custom' 2024-05-31 13:51:16 +02:00
test-drivers media: vimc: scaler: Use subdev active state 2024-06-26 16:39:34 +02:00
tuners media: xc2028: avoid use-after-free in load_firmware_cb() 2024-06-21 08:57:09 +02:00
usb media: b2c2: flexcop-usb: fix flexcop_usb_memory_req 2024-06-24 11:05:07 +02:00
v4l2-core - Conversion of max9286 and adv748x to V4L2 subdev active state 2024-06-26 14:49:57 +02:00
Kconfig
Makefile