]> git.ipfire.org Git - thirdparty/linux.git/commit
media: imx335: Update HBLANK range on mode change
authorJai Luthra <jai.luthra@ideasonboard.com>
Thu, 30 Oct 2025 08:42:57 +0000 (14:12 +0530)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Thu, 13 Nov 2025 09:57:52 +0000 (10:57 +0100)
commitd64ec84ac01b100619f68929a7e29f00617a6ffd
treee4e8fcac5c0c1c51dbe5dd4b1aa85d0edf1e9ee7
parentb82801a11fd6c26cc6c74e277e44bbc4481dde56
media: imx335: Update HBLANK range on mode change

While switching modes, updating to a different value of HBLANK isn't
sufficient, as this is a read-only control with a single allowed value,
and thus hblank_min == hblank_max == hblank of the default mode.

So to correctly update the user-facing value of the HBLANK parameter,
which is necessary for correct framerate calculation, update the whole
range when switching modes.

Reviewed-by: Kieran Bingham <kieran.bingham@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/imx335.c