xf86-video-intel: src/i830_crt.c

Keith Packard keithp at kemper.freedesktop.org
Mon Feb 23 13:32:05 PST 2009


 src/i830_crt.c |   16 ++--------------
 1 file changed, 2 insertions(+), 14 deletions(-)

New commits:
commit 668b2352a47bcfba75fe0492a5805726222755eb
Author: Keith Packard <keithp at keithp.com>
Date:   Mon Feb 23 13:31:51 2009 -0800

    Revert "Limit CRT DAC speed better."
    
    This reverts commit 8fd0e46571c7ba15c05f0a759113f8ca842c76a2.
    
    This doesn't even build. Please try again.

diff --git a/src/i830_crt.c b/src/i830_crt.c
index 984e77c..605ecf9 100644
--- a/src/i830_crt.c
+++ b/src/i830_crt.c
@@ -84,23 +84,11 @@ i830_crt_restore (xf86OutputPtr output)
 static int
 i830_crt_mode_valid(xf86OutputPtr output, DisplayModePtr pMode)
 {
-    ScrnInfoPtr pScrn = output->scrn;
-    I830Ptr	pI830 = I830Ptr(pScrn);
-    int		maxclock;
-
     if (pMode->Flags & V_DBLSCAN)
 	return MODE_NO_DBLESCAN;
 
-    if (pMode->Clock < 25000)
-	return MODE_CLOCK_LOW;
-
-    if (!IS_I9XX(pI830))
-	maxclock = 350000;
-    else
-	maxclock = 400000;
-
-    if (pMode->Clock > maxclock)
-	return MODE_CLOCK_HIGH;
+    if (pMode->Clock > 400000 || pMode->Clock < 25000)
+	return MODE_CLOCK_RANGE;
 
     return MODE_OK;
 }


More information about the xorg-commit mailing list