media: i2c: imx477: Add very long exposure control to the driver
authorNaushir Patuck <naush@raspberrypi.com>
Wed, 10 Feb 2021 10:50:32 +0000 (10:50 +0000)
committerDom Cobley <popcornmix@gmail.com>
Mon, 21 Mar 2022 16:04:10 +0000 (16:04 +0000)
commit91daa793e204e08c93e8c690712dea0c8db84a4e
tree8acc16815e27f5874274c6f014d93d04497b4701
parent7366e2b911259a922da7b300fb9662b14d14bea2
media: i2c: imx477: Add very long exposure control to the driver

Add support for very long exposures by using the exposure multiplier
register. Userland does not need to pass any additional controls to
enable long exposures, it simply requests a larger vblank to extend the
exposure control range appropriately.

Currently, since hblank is fixed, a maximum of approximately 124 seconds
of exposure time can be used. In a future change, hblank could also be
controlled in userland to give over 200 seconds of exposure time.

Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
drivers/media/i2c/imx477.c