OSDN Git Service

media: atomisp-ov2680: Fix ov2680_set_fmt() clobbering the exposure
authorHans de Goede <hdegoede@redhat.com>
Sun, 7 Nov 2021 17:15:48 +0000 (17:15 +0000)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 15 Nov 2021 08:11:56 +0000 (08:11 +0000)
commit4492289c31364d28c2680b43b18883385a5d216c
treedbdcecad68e7c1060f4520ebdf2675382cc74dbd
parent9f7b638637da7b1785659fd963d79dbca5caaa69
media: atomisp-ov2680: Fix ov2680_set_fmt() clobbering the exposure

Now that we restore the default or last user set exposure setting on
power_up() there is no need for the registers written by ov2680_set_fmt()
to write to the exposure register.

Not doing so fixes the exposure always being reset to the value from
the res->regs array after a set_fmt().

Link: https://lore.kernel.org/linux-media/20211107171549.267583-11-hdegoede@redhat.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/i2c/ov2680.h