[PATCH] v4l2-ctl-modes: use reduced fps only with reduced blanking v2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In the absence of reduced blanking v2, the clock granularity is not
sufficient enough to allow pixel clock reduction done by factor of
1000 / 1001 in case of reduced fps.

Cc: Hans Verkuil <hans.verkuil@xxxxxxxxx>
Signed-off-by: Prashant Laddha <prladdha@xxxxxxxxx>
---
 utils/v4l2-ctl/v4l2-ctl-modes.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/utils/v4l2-ctl/v4l2-ctl-modes.cpp b/utils/v4l2-ctl/v4l2-ctl-modes.cpp
index e44b229..236f19f 100644
--- a/utils/v4l2-ctl/v4l2-ctl-modes.cpp
+++ b/utils/v4l2-ctl/v4l2-ctl-modes.cpp
@@ -336,7 +336,7 @@ bool calc_cvt_modeline(int image_width, int image_height,
 	} else {
 		cvt->polarities = V4L2_DV_VSYNC_POS_POL;
 	}
-	if (reduced_fps && v_refresh % 6 == 0)
+	if (rb_v2 && reduced_fps && v_refresh % 6 == 0)
 		cvt->flags |= V4L2_DV_FL_REDUCED_FPS;
 
 	return true;
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux