drm/edid: Fix sync polarity for secondary GTF curve
authorAdam Jackson <ajax@redhat.com>
Thu, 8 Apr 2010 19:00:30 +0000 (19:00 +0000)
committerDave Airlie <airlied@redhat.com>
Fri, 9 Apr 2010 00:05:40 +0000 (10:05 +1000)
Signed-off-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_modes.c

index 8840066a5775aad772f26c97f92100cdf0918672..f1f473ea97d3bc3c7af129fe7e364c33e6a02de8 100644 (file)
@@ -452,7 +452,10 @@ drm_gtf_mode_complex(struct drm_device *dev, int hdisplay, int vdisplay,
        }
 
        drm_mode_set_name(drm_mode);
-       drm_mode->flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_PVSYNC;
+       if (GTF_M == 600 && GTF_2C == 80 && GTF_K == 128 && GTF_2J == 40)
+               drm_mode->flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_PVSYNC;
+       else
+               drm_mode->flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_NVSYNC;
 
        return drm_mode;
 }