Signed-off-by: Francisco Jerez <[email protected]>
---
 drivers/gpu/drm/nouveau/nv17_tv.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/nouveau/nv17_tv.c 
b/drivers/gpu/drm/nouveau/nv17_tv.c
index 3856342..34f95c7 100644
--- a/drivers/gpu/drm/nouveau/nv17_tv.c
+++ b/drivers/gpu/drm/nouveau/nv17_tv.c
@@ -178,13 +178,13 @@ static int nv17_tv_mode_valid(struct drm_encoder *encoder,
                        return MODE_NO_DBLESCAN;
 
        } else {
-               const int vsync_tolerance = 10;
+               const int vsync_tolerance = 600;
 
                if (mode->clock > 70000)
                        return MODE_CLOCK_HIGH;
 
-               if (abs(drm_mode_vrefresh(mode) -
-                           tv_norm->tv_enc_mode.vrefresh) > vsync_tolerance)
+               if (abs(drm_mode_vrefresh(mode) * 1000 -
+                       tv_norm->tv_enc_mode.vrefresh) > vsync_tolerance)
                        return MODE_VSYNC;
 
                /* The encoder takes care of the actual interlacing */
-- 
1.6.3.3

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

Reply via email to