summaryrefslogtreecommitdiff
path: root/include/linux/array_size.h
diff options
context:
space:
mode:
authorMathis Foerst <mathis.foerst@mt.com>2025-07-14 10:59:26 +0300
committerHans Verkuil <hverkuil+cisco@kernel.org>2025-08-25 16:40:38 +0300
commitb541288c515d91424e74055a7b2ef344446a92f7 (patch)
tree883ecea70758767efb33430cd67afe26d2748b61 /include/linux/array_size.h
parentefe0832f57bd8a7155a63f3375353c27e3967959 (diff)
downloadlinux-b541288c515d91424e74055a7b2ef344446a92f7.tar.xz
media: mt9m114: Allow set_selection while streaming
The current implementation does not apply changes to the crop- configuration of the sensor immediately if the sensor is in streaming state. The user has to stop and restart the stream for the changes to be applied. This can be undesirable e.g. in a calibration usecase where the user wants to see the impact of his changes in a live video stream. Under the condition that the width & height of the cropped image area does not change, the changed cropping configuration can be applied to the pixel-array immediately without disturbing the IFP. Call mt9m114_configure_pa() in mt9m114_pa_set_selection() if the sensor is in streaming state and the size of the cropping rectangle didn't change, issue a CONFIG_CHANGE to apply the changes immediately. Signed-off-by: Mathis Foerst <mathis.foerst@mt.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Diffstat (limited to 'include/linux/array_size.h')
0 files changed, 0 insertions, 0 deletions