summaryrefslogtreecommitdiff
path: root/src/atimode.c
diff options
context:
space:
mode:
authorGeorge Sapountzis <gsap7@yahoo.gr>2006-08-14 17:55:14 +0300
committerGeorge Sapountzis <gsap7@yahoo.gr>2007-01-28 01:24:21 +0200
commit87cf2f1874ca8a7cc492d2e2b6918ba69a8aa713 (patch)
treeac278f565376b0fee6d90184c15c26bc44bc4c92 /src/atimode.c
parent0b31333c9147af21c50493872779da12a3668e5d (diff)
Minor refactoring of module (un)loading for TV_OUT.
Diffstat (limited to 'src/atimode.c')
-rw-r--r--src/atimode.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/atimode.c b/src/atimode.c
index 227eea2..d455404 100644
--- a/src/atimode.c
+++ b/src/atimode.c
@@ -741,16 +741,17 @@ ATIModeCalculate
MaxScalerClock = 80000; /* Conservative */
pATIHW->pll_vclk_cntl &= ~PLL_ECP_DIV;
#ifdef TV_OUT
- if (!pATI->OptionTvOut) {
-#endif /* TV_OUT */
+ if (pATI->OptionTvOut) {
/* XXX Don't do this for TVOut! */
+ }
+ else
+#endif /* TV_OUT */
+ {
ECPClock = pMode->SynthClock;
for (Index = 0; (ECPClock > MaxScalerClock) && (Index < 2); Index++)
ECPClock >>= 1;
pATIHW->pll_vclk_cntl |= SetBits(Index, PLL_ECP_DIV);
-#ifdef TV_OUT
}
-#endif /* TV_OUT */
}
else if (pATI->DAC == ATI_DAC_IBMRGB514)
{