drm/i915/sdvo: Set sync polarity based on actual mode

Signed-off-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
Adam Jackson 2010-07-16 14:46:32 -04:00 committed by Eric Anholt
parent b599c0bca1
commit 81a14b4684
1 changed files with 5 additions and 3 deletions

View File

@ -1237,9 +1237,11 @@ static void intel_sdvo_mode_set(struct drm_encoder *encoder,
/* Set the SDVO control regs. */ /* Set the SDVO control regs. */
if (IS_I965G(dev)) { if (IS_I965G(dev)) {
sdvox |= SDVO_BORDER_ENABLE | sdvox |= SDVO_BORDER_ENABLE;
SDVO_VSYNC_ACTIVE_HIGH | if (adjusted_mode->flags & DRM_MODE_FLAG_PVSYNC)
SDVO_HSYNC_ACTIVE_HIGH; sdvox |= SDVO_VSYNC_ACTIVE_HIGH;
if (adjusted_mode->flags & DRM_MODE_FLAG_PHSYNC)
sdvox |= SDVO_HSYNC_ACTIVE_HIGH;
} else { } else {
sdvox |= I915_READ(sdvo_priv->sdvo_reg); sdvox |= I915_READ(sdvo_priv->sdvo_reg);
switch (sdvo_priv->sdvo_reg) { switch (sdvo_priv->sdvo_reg) {