media: ov08x40: Modify the tline calculation in different modes
authorJason Chen <jason.z.chen@intel.com>
Wed, 18 Oct 2023 05:58:41 +0000 (07:58 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Thu, 1 Feb 2024 12:43:58 +0000 (13:43 +0100)
commiteea8f730df15dd41341b2904748a89895f20032b
tree6ea296840f5ea3bd57b132c98d26ab1669b022c0
parentb1a42fde6e077ec2fdeac1bcbcf464210c5aa682
media: ov08x40: Modify the tline calculation in different modes

ov08x40 quad bayer sensor ISP has the following work modes:
- normal mode: full size
- 2x2 binned mode: binning size

In normal and binned modes, different tline calculations are
applied.

- normal mode: Tline value needs to be doubled as per the
vendor's update.

Tline time = 2 * HTS / SCLK
Exposure unit : 1 * HTS = 0.5 Tline

- 2x2 binned mode:

Tline time = 1 * HTS / SCLK
Exposure unit : 1 * HTS = 1 Tline

Signed-off-by: Jason Chen <jason.z.chen@intel.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/i2c/ov08x40.c