[media] v4l2-dv-timings: add condition checks for reduced fps
authorPrashant Laddha <prladdha@cisco.com>
Tue, 22 Sep 2015 14:27:28 +0000 (11:27 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 17 Nov 2015 17:05:14 +0000 (15:05 -0200)
commit8d7322f4f753644bd00d3a7a267c43f506a0b9c1
tree727c1feb893e0ab3e9849ba730c0cf6b1066bc80
parent0d51ebd3f41f195e33ed8d9b9d67ed90f6e298ec
[media] v4l2-dv-timings: add condition checks for reduced fps

Added a helper function to check necessary conditions required for
reduced fps. The reduced fps is supported for CVT and CEA861 timings.
CVT supports reduced fps only if reduced blanking v2 (indicated by
vsync = 8) is true. Whereas CEA861 supports reduced fps if
V4L2_DV_FL_CAN_REDUCE_FPS flag is true.

Signed-off-by: Prashant Laddha <prladdha@cisco.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/v4l2-core/v4l2-dv-timings.c
include/media/v4l2-dv-timings.h