Fix EDID pixel clock calculation.
authorJesse Barnes <jbarnes@hobbes.virtuousgeek.org>
Wed, 11 Apr 2007 18:42:00 +0000 (11:42 -0700)
committerJesse Barnes <jbarnes@hobbes.virtuousgeek.org>
Wed, 11 Apr 2007 18:42:00 +0000 (11:42 -0700)
linux-core/drm_edid.c

index b79bc2d..9acdc8d 100644 (file)
@@ -114,7 +114,7 @@ struct drm_display_mode *drm_mode_detailed(drm_device_t *dev,
                return NULL;
 
        mode->type = DRM_MODE_TYPE_DRIVER;
-       mode->clock = timing->pixel_clock / 100;
+       mode->clock = timing->pixel_clock * 10;
 
        mode->hdisplay = (pt->hactive_hi << 8) | pt->hactive_lo;
        mode->hsync_start = mode->hdisplay + ((pt->hsync_offset_hi << 8) |