[patch1/2] xf86modes: fix max clock unit

Hong Liu hong.liu at intel.com
Sun Jan 27 22:16:29 PST 2008


max clock from EDID data is in MHz, while we need KHz to validate modes.

Thanks,
Hong

diff --git a/hw/xfree86/modes/xf86Crtc.c b/hw/xfree86/modes/xf86Crtc.c
index 10db862..890d055 100644
--- a/hw/xfree86/modes/xf86Crtc.c
+++ b/hw/xfree86/modes/xf86Crtc.c
@@ -1363,7 +1363,7 @@ xf86ProbeOutputModes (ScrnInfoPtr scrn, int maxX, int maxY)
 			    sync_source = sync_edid;
 		    }
 		    if (ranges->max_clock > max_clock)
-			max_clock = ranges->max_clock;
+			max_clock = ranges->max_clock * 1000;
 		}
 	    }
 	}





More information about the xorg mailing list