diff options
author | Adam Jackson <ajax@redhat.com> | 2010-04-08 15:00:30 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-04-08 20:05:40 -0400 |
commit | c385e50cb51ace73ebe12d57df76882e9dcf0e53 (patch) | |
tree | d813045d779d2cb8e81ac78654ada1b0e3afeea3 | |
parent | 171fdd892979081e8a9b1a67ce86c7008b7abbdf (diff) |
drm/edid: Fix sync polarity for secondary GTF curve
Signed-off-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r-- | drivers/gpu/drm/drm_modes.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_modes.c b/drivers/gpu/drm/drm_modes.c index 8840066a5775..f1f473ea97d3 100644 --- a/drivers/gpu/drm/drm_modes.c +++ b/drivers/gpu/drm/drm_modes.c | |||
@@ -452,7 +452,10 @@ drm_gtf_mode_complex(struct drm_device *dev, int hdisplay, int vdisplay, | |||
452 | } | 452 | } |
453 | 453 | ||
454 | drm_mode_set_name(drm_mode); | 454 | drm_mode_set_name(drm_mode); |
455 | drm_mode->flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_PVSYNC; | 455 | if (GTF_M == 600 && GTF_2C == 80 && GTF_K == 128 && GTF_2J == 40) |
456 | drm_mode->flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_PVSYNC; | ||
457 | else | ||
458 | drm_mode->flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_NVSYNC; | ||
456 | 459 | ||
457 | return drm_mode; | 460 | return drm_mode; |
458 | } | 461 | } |