]> www.infradead.org Git - users/jedix/linux-maple.git/commit
media: i2c: imx219: make HBLANK r/w to allow longer exposures
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Tue, 4 Feb 2025 07:04:38 +0000 (12:34 +0530)
committerHans Verkuil <hverkuil@xs4all.nl>
Sat, 15 Feb 2025 14:23:00 +0000 (15:23 +0100)
commitcd5e2fd89923f1da0c44f74bc46d25665a7d6155
tree8afbbd2043aebabfd961b81601072de6c5c23682
parent04f78503f99ae7e9887c7fe5e4bc54a7cfb10fe0
media: i2c: imx219: make HBLANK r/w to allow longer exposures

The HBLANK control was read-only, and always configured such that the
sensor line length 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 line length setting when changing modes rather than resetting it
to a default.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Signed-off-by: Jai Luthra <jai.luthra@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/i2c/imx219.c