]> www.infradead.org Git - users/jedix/linux-maple.git/commit
media: i2c: imx258: Follow normal V4L2 behaviours for clipping exposure
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Wed, 1 May 2024 15:24:27 +0000 (09:24 -0600)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Tue, 4 Jun 2024 06:31:23 +0000 (08:31 +0200)
commit8eaf1994a40fdbd9e65c9b9f1e075fb47da6bc89
treec800fc35e02a123f28f6d8672a2d6f84550cb997
parentc699953f61d42b121d755872048178a0b074efae
media: i2c: imx258: Follow normal V4L2 behaviours for clipping exposure

V4L2 sensor drivers are expected to clip the supported exposure
range based on the VBLANK configured.
IMX258 wasn't doing that as register 0x350 (FRM_LENGTH_CTL)
switches it to a mode where frame length tracks coarse exposure time.

Disable this mode and clip the range for V4L2_CID_EXPOSURE appropriately
based on V4L2_CID_VBLANK.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Signed-off-by: Luis Garcia <git@luigi311.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/i2c/imx258.c