]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: i2c: ov5647: Add control of V4L2_CID_HBLANK
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Mon, 22 Dec 2025 08:15:36 +0000 (13:45 +0530)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Wed, 14 Jan 2026 22:33:03 +0000 (23:33 +0100)
commit87b2b6cef20885f45bbbc9412e30ca3f79f8245b
treebbff2f2385ffdc4b61b690152cdfcd52106c5c5a
parentb9ca9ef3f0471d8c7a4ef978304ebbbc6489e2e1
media: i2c: ov5647: Add control of V4L2_CID_HBLANK

The driver did expose V4L2_CID_HBLANK, but as a READ_ONLY control.

The sensor only uses the HTS register to control the line length,
so convert this control to read/write, with the appropriate ranges.
Adopt the old fixed values as the minimum values permitted in each
mode to avoid issues of it not streaming.

This should allow exposure times up to ~3 seconds (up from ~1sec).

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+cisco@kernel.org>
drivers/media/i2c/ov5647.c