From: Adam Jackson Date: Tue, 27 Jul 2010 21:40:32 +0000 (+1000) Subject: drm/edid: Fix the HDTV hack sync adjustment X-Git-Tag: v2.6.32.19~82 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2b748daf1fe9d982e331c274a43c67d8e97ab05a;p=karo-tx-linux.git drm/edid: Fix the HDTV hack sync adjustment commit a4967de6cbb260ad0f6612a1d2035e119ef1578f upstream. We're adjusting horizontal timings only here, moving vsync was just a slavish translation of a typo in the X server. Signed-off-by: Adam Jackson Signed-off-by: Dave Airlie Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c index 259ec21a93ea..1097dece323c 100644 --- a/drivers/gpu/drm/drm_edid.c +++ b/drivers/gpu/drm/drm_edid.c @@ -565,8 +565,8 @@ struct drm_display_mode *drm_mode_std(struct drm_device *dev, mode = drm_cvt_mode(dev, hsize, vsize, vrefresh_rate, 0, 0, false); mode->hdisplay = 1366; - mode->vsync_start = mode->vsync_start - 1; - mode->vsync_end = mode->vsync_end - 1; + mode->hsync_start = mode->hsync_start - 1; + mode->hsync_end = mode->hsync_end - 1; return mode; } mode = NULL;