diff options
author | Ivor Hewitt <ivor@ivor.org> | 2005-10-27 09:12:26 +0000 |
---|---|---|
committer | Ivor Hewitt <ivor@ivor.org> | 2005-10-27 09:12:26 +0000 |
commit | 2291725fedc403c510d5201caddf316eeb835790 (patch) | |
tree | d6a54ad1a1474b45613164384f82c65b1d79b787 | |
parent | e726def20d3867d546f6e8f4f55f2d228ad6ff80 (diff) |
Bug #4855: Fix VT3122 and VT3205 dotclock PLL setting. (Luc Verhaegen)
-rw-r--r-- | unichrome/via_mode.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/unichrome/via_mode.c b/unichrome/via_mode.c index e0e17b4..02b3661 100644 --- a/unichrome/via_mode.c +++ b/unichrome/via_mode.c @@ -1604,18 +1604,20 @@ ViaModeDotClockTranslate(ScrnInfoPtr pScrn, DisplayModePtr mode) { VIAPtr pVia = VIAPTR(pScrn); int i; - CARD32 ret; for (i = 0; ViaDotClocks[i].DotClock; i++) if (ViaDotClocks[i].DotClock == mode->Clock) { if ((pVia->Chipset == VIA_CLE266) || (pVia->Chipset == VIA_KM400)) return ViaDotClocks[i].UniChrome; else { + CARD32 ret; ret = ViaDotClocks[i].UniChromePro; - if (ret) return ret; + if (!ret) + ret=ViaComputeProDotClock(mode->Clock); + return ret; } } - return ViaComputeProDotClock(mode->Clock); + return 0; } /* |