media: i2c: imx219: make HBLANK r/w to allow longer exposures
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Thu, 14 Sep 2023 11:23:05 +0000 (12:23 +0100)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:33:39 +0000 (11:33 +0000)
commit735e3718bde812bdbb27fe9393edb8d67a0346fe
treef53150cd0d3805e7c26c3fc19c7c2f8025999cd0
parent2fe9cb9012d88e9aaeeddaf59aec2d37bab55a5d
media: i2c: imx219: make HBLANK r/w to allow longer exposures

The HBLANK control was read-only, and always configured such
that the sensor HTS register was 3448. This limited the maximum
exposure time that could be achieved to around 1.26 secs.

Make HBLANK read/write so that the line time can be extended,
and thereby allow longer exposures (and slower frame rates).
Retain the overall HTS setting when changing modes rather than
resetting it to a default.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
drivers/media/i2c/imx219.c