summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZhenyu Wang <zhenyu.z.wang@intel.com>2009-03-10 14:21:36 +0800
committerCarl Worth <cworth@cworth.org>2009-03-11 16:04:55 -0700
commitaf97292c9df4e5178d5c8742f87ea8123d6e2243 (patch)
tree694aa51c69d88b2e2388b4c05b2ba9aa9649f8e0 /src
parent419499d622ba10177b760da5324f0507ac146e9a (diff)
SDVO: fix pixel multiplier setting for TV
We should use preferred input timing's clock for correct pixel multiplier setting, otherwise we might get inconsistent multiplier setting on pipe and SDVO device for some modes. (cherry picked from commit 2fcf4fcccfe7cfa1425985d21a144137eca07f4e)
Diffstat (limited to 'src')
-rw-r--r--src/i830_sdvo.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/i830_sdvo.c b/src/i830_sdvo.c
index 1f2578ee..baba0079 100644
--- a/src/i830_sdvo.c
+++ b/src/i830_sdvo.c
@@ -1039,8 +1039,13 @@ i830_sdvo_mode_fixup(xf86OutputPtr output, DisplayModePtr mode,
ErrorF("input modeline:\n");
xf86PrintModeline(0, adjusted_mode);
+
+ /* adjust origin mode's clock for current input,
+ for correct pixel mulitiplier setting. */
+ mode->Clock = adjusted_mode->Clock;
+
/* Clock range is required to be in 100-200Mhz */
- adjusted_mode->Clock *= i830_sdvo_get_pixel_multiplier(adjusted_mode);
+ adjusted_mode->Clock *= i830_sdvo_get_pixel_multiplier(mode);
} else {
return FALSE;
}