drivers: media: i2c: imx708: Fix WIDE_DYNAMIC_RANGE control with long exposure
authorDavid Plowman <david.plowman@raspberrypi.com>
Wed, 22 Mar 2023 12:01:57 +0000 (12:01 +0000)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:33:29 +0000 (11:33 +0000)
commitf9bc7be9032a6ed9a3c5330bc6f39dce686029a8
treebd102f60fa41ce979c73703415d6f8a75e0b193e
parentfedd55f57703d0b885c4596be66df38e6d5645e3
drivers: media: i2c: imx708: Fix WIDE_DYNAMIC_RANGE control with long exposure

Setting V4L2_CID_WIDE_DYNAMIC_RANGE was causing the long exposure
shift count to be reset, which is incorrect if the user has already
changed the frame length to cause it to have a non-zero value.

Because it only updates control ranges and doesn't set any registers,
the control can also be applied when the sensor is not powered on.

Signed-off-by: David Plowman <david.plowman@raspberrypi.com>
drivers/media/i2c/imx708.c