media: ar0521: Adjust exposure and blankings limits
authorJacopo Mondi <jacopo@jmondi.org>
Fri, 4 Nov 2022 14:24:50 +0000 (14:24 +0000)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 25 Nov 2022 08:45:13 +0000 (08:45 +0000)
commit64114626f181692f3788a6c73eade53ab8498f84
tree1ba0c5d3b8e2dba3b19e17f173b8b7365169e1b7
parentf9746da3473c571b1021bc78bf2b2deea8d3fd1c
media: ar0521: Adjust exposure and blankings limits

Adjust the control limits for V4L2_CID_VBLANK, V4L2_CID_HBLANK and
V4L2_CID_EXPOSURE when a new format is applied to the sensor.

Update the exposure control limits when a new blanking value is
applied and change the controls initialization to use valid values for the
default format.

The exposure control default value is changed to report the default
value of register 0x3012.

Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/i2c/ar0521.c