media: adv7842: enable reduced fps detection
authorHans Verkuil <hans.verkuil@cisco.com>
Wed, 15 Aug 2018 12:54:43 +0000 (08:54 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 31 Aug 2018 14:03:51 +0000 (10:03 -0400)
commit4ee9ed7aa0b4c89c97d33dfb349da3d87f9efcb0
treef67d0c2d78f62d2e2d0db28d852de75fe90052e6
parent97f65ce6132a3caed204151f9e29b4b4e511bb00
media: adv7842: enable reduced fps detection

The pixelclock detection of the adv7842 is precise enough to detect
if the framerate is 60 Hz or 59.94 Hz (aka "reduced fps").

Implement this detection.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/i2c/adv7842.c