media: ov5675: use group write to update digital gain
authorBingbu Cao <bingbu.cao@intel.com>
Wed, 29 Dec 2021 08:57:39 +0000 (09:57 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Thu, 17 Feb 2022 08:58:42 +0000 (09:58 +0100)
commit24e9edc1527c48dbb42267de5b302414521c05d8
treee6960525000846ce651c04b5673f5b4a5cf0fb31
parenta44b8e8c9b2615ea7cf2361cbca3c1dff8119c87
media: ov5675: use group write to update digital gain

MWB gain register are used to set gain for each mwb channel mannually.
However, it will involve some artifacts at low light environment as gain
cannot be applied to each channel synchronously. Update the driver to use
group write for digital gain to make the sure RGB digital gain be applied
together at frame boundary.

Signed-off-by: Bingbu Cao <bingbu.cao@intel.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/i2c/ov5675.c