Commit b599c0bc authored by Adam Jackson's avatar Adam Jackson Committed by Eric Anholt

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

Signed-off-by: default avatarAdam Jackson <ajax@redhat.com>
Signed-off-by: default avatarEric Anholt <eric@anholt.net>
parent d6d95268
...@@ -54,10 +54,11 @@ static void intel_hdmi_mode_set(struct drm_encoder *encoder, ...@@ -54,10 +54,11 @@ static void intel_hdmi_mode_set(struct drm_encoder *encoder,
struct intel_hdmi_priv *hdmi_priv = intel_encoder->dev_priv; struct intel_hdmi_priv *hdmi_priv = intel_encoder->dev_priv;
u32 sdvox; u32 sdvox;
sdvox = SDVO_ENCODING_HDMI | sdvox = SDVO_ENCODING_HDMI | SDVO_BORDER_ENABLE;
SDVO_BORDER_ENABLE | if (adjusted_mode->flags & DRM_MODE_FLAG_PVSYNC)
SDVO_VSYNC_ACTIVE_HIGH | sdvox |= SDVO_VSYNC_ACTIVE_HIGH;
SDVO_HSYNC_ACTIVE_HIGH; if (adjusted_mode->flags & DRM_MODE_FLAG_PHSYNC)
sdvox |= SDVO_HSYNC_ACTIVE_HIGH;
if (hdmi_priv->has_hdmi_sink) { if (hdmi_priv->has_hdmi_sink) {
sdvox |= SDVO_AUDIO_ENABLE; sdvox |= SDVO_AUDIO_ENABLE;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment