media: imx335: Fix active area height discrepency
authorUmang Jain <umang.jain@ideasonboard.com>
Sun, 14 Apr 2024 14:06:20 +0000 (19:36 +0530)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Mon, 22 Apr 2024 09:41:05 +0000 (11:41 +0200)
commit81495a59baebab3fd8fd859a60dac7bf82d2b290
treeb9d69c31993b78c2fa4f58ac8eb5451fa4e57d5e
parent15a853bb1f5267578efa4ed33a56aaa593b97c62
media: imx335: Fix active area height discrepency

The imx335 reports a recommended pixel area of - 2592x1944.
The driver supported mode however limits it to height=1940.

Fix the height discrepency by correctly the value of height
(with updates to vblank and mode registers).

The IMX335_REG_HTRIMMING should also be corrected to the start
offset(i.e. 48) instead of chosing a abritrary crop start of 384.

Signed-off-by: Umang Jain <umang.jain@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/i2c/imx335.c