OSDN Git Service

media: gspca_zc3xx: Enable short exposure times for OV7648
authorOndrej Zary <linux@rainbow-software.org>
Fri, 25 May 2018 09:08:43 +0000 (05:08 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 28 May 2018 20:35:41 +0000 (16:35 -0400)
commit6c0e931c740a7fbd4697d77d380310ba6e1d1acf
tree6279f01b965ccaea7f1df8d5b082e8e8045d04a4
parent8945dead54a7acf325eb09be29704d3a1bcbb662
media: gspca_zc3xx: Enable short exposure times for OV7648

The 50Hz and 60Hz power line frequency settings disable short (1/120s
and 1/100s) exposure times for banding filter (causing overexposed
image near lamps). No flicker setting enables them (when banding
filter is disabled and they're not used).

Seems that the logic is just the wrong way around.
(This bug came from the Windows driver.)

Signed-off-by: Ondrej Zary <linux@rainbow-software.org>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/usb/gspca/zc3xx.c