media: imx274: add support for sensor mode6, 1280x540
authorEugen Hristev <eugen.hristev@microchip.com>
Tue, 15 Sep 2020 09:04:42 +0000 (11:04 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 16 Nov 2020 09:31:12 +0000 (10:31 +0100)
commitf70ad2aced307948a9a4395471f72528e32307e7
tree407cc8a36cb9ec084cbfa54ec35aafa725dd9fd9
parente599fc86717fde6741891c8b1689fe7043734348
media: imx274: add support for sensor mode6, 1280x540

Add support for the mode 6 for the sensor, this mode uses
3/8 subsampling and 3 horizontal binning.
Aspect ratio is changed.
Split the bin_ratio variable into two parts, one for
width and one for height, as the ratio is no longer preserved
when doing subsampling in this mode.

Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
Reviewed-by: Luca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/i2c/imx274.c