aboutsummaryrefslogtreecommitdiff
path: root/drivers/media/test-drivers/vimc/vimc-scaler.c
diff options
context:
space:
mode:
authorLaurent Pinchart <[email protected]>2024-04-25 02:57:39 +0300
committerHans Verkuil <[email protected]>2024-06-26 16:39:34 +0200
commitcf2552d87ac0e50f98c1e18d233a74ca58af819f (patch)
tree83bbdbb2fe4335e370f9b91626b907a23f58ccaf /drivers/media/test-drivers/vimc/vimc-scaler.c
parentb3f73b21887ecda4c03a61085c7290ce585016d0 (diff)
media: vimc: sensor: 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_sensor_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_sensor_device named hw. Signed-off-by: Laurent Pinchart <[email protected]> Signed-off-by: Shuah Khan <[email protected]> Signed-off-by: Hans Verkuil <[email protected]>
Diffstat (limited to 'drivers/media/test-drivers/vimc/vimc-scaler.c')
0 files changed, 0 insertions, 0 deletions