Fix SDVO mulitiplier setting for 945G

Wrong SDVO multiplier setup has been slipped
in SDVO TV patch. Thanks Michael Fu to point this out!
This commit is contained in:
Zhenyu Wang 2009-02-18 10:49:00 +08:00
parent 723b606509
commit 62ca1c4798
1 changed files with 1 additions and 1 deletions

View File

@ -1337,7 +1337,7 @@ i830_crtc_mode_set(xf86CrtcPtr crtc, DisplayModePtr mode,
dpll |= DPLL_DVO_HIGH_SPEED;
if ((IS_I945G(pI830) || IS_I945GM(pI830) || IS_G33CLASS(pI830)))
{
int sdvo_pixel_multiply = i830_sdvo_get_pixel_multiplier (adjusted_mode);
int sdvo_pixel_multiply = adjusted_mode->Clock / mode->Clock;
dpll |= (sdvo_pixel_multiply - 1) << SDVO_MULTIPLIER_SHIFT_HIRES;
}
}