diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/aticonfig.c | 22 | ||||
-rw-r--r-- | src/atipreinit.c | 35 |
2 files changed, 18 insertions, 39 deletions
diff --git a/src/aticonfig.c b/src/aticonfig.c index 837720f..9102497 100644 --- a/src/aticonfig.c +++ b/src/aticonfig.c @@ -473,28 +473,6 @@ ATIProcessOptions pATI->refclk = (int)ReferenceClock; - /* Only set the reference clock if it hasn't already been determined */ - if (!pATI->ReferenceNumerator || !pATI->ReferenceDenominator) - { - switch (pATI->refclk / 100000) - { - case 143: - pATI->ReferenceNumerator = 157500; - pATI->ReferenceDenominator = 11; - break; - - case 286: - pATI->ReferenceNumerator = 315000; - pATI->ReferenceDenominator = 11; - break; - - default: - pATI->ReferenceNumerator = pATI->refclk / 1000; - pATI->ReferenceDenominator = 1; - break; - } - } - pATI->useEXA = FALSE; if (pATI->OptionAccel) { diff --git a/src/atipreinit.c b/src/atipreinit.c index f6b0ce4..1c92f5d 100644 --- a/src/atipreinit.c +++ b/src/atipreinit.c @@ -150,23 +150,6 @@ ati_bios_clock pATI->ClockNumberToProgramme = BIOSByte(ClockTable + 0x06U); pATI->refclk = BIOSWord(ClockTable + 0x08U); pATI->refclk *= 10000; - switch (pATI->refclk / 100000) - { - case 143: - pATI->ReferenceNumerator = 157500; - pATI->ReferenceDenominator = 11; - break; - - case 286: - pATI->ReferenceNumerator = 315000; - pATI->ReferenceDenominator = 11; - break; - - default: - pATI->ReferenceNumerator = pATI->refclk / 1000; - pATI->ReferenceDenominator = 1; - break; - } } else { @@ -313,6 +296,24 @@ ati_bios_clock pATI->DAC = ClockDac; /* For now */ } } + + switch (pATI->refclk / 100000) + { + case 143: + pATI->ReferenceNumerator = 157500; + pATI->ReferenceDenominator = 11; + break; + + case 286: + pATI->ReferenceNumerator = 315000; + pATI->ReferenceDenominator = 11; + break; + + default: + pATI->ReferenceNumerator = pATI->refclk / 1000; + pATI->ReferenceDenominator = 1; + break; + } } /* |