diff options
Diffstat (limited to 'drivers/gpu/drm/i915/intel_display.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_display.c | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 31c3732b7a6..bbdd72909a1 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c | |||
@@ -755,6 +755,8 @@ static void intel_crtc_mode_set(struct drm_crtc *crtc, | |||
755 | case INTEL_OUTPUT_SDVO: | 755 | case INTEL_OUTPUT_SDVO: |
756 | case INTEL_OUTPUT_HDMI: | 756 | case INTEL_OUTPUT_HDMI: |
757 | is_sdvo = true; | 757 | is_sdvo = true; |
758 | if (intel_output->needs_tv_clock) | ||
759 | is_tv = true; | ||
758 | break; | 760 | break; |
759 | case INTEL_OUTPUT_DVO: | 761 | case INTEL_OUTPUT_DVO: |
760 | is_dvo = true; | 762 | is_dvo = true; |
@@ -1452,6 +1454,7 @@ static int intel_connector_clones(struct drm_device *dev, int type_mask) | |||
1452 | 1454 | ||
1453 | static void intel_setup_outputs(struct drm_device *dev) | 1455 | static void intel_setup_outputs(struct drm_device *dev) |
1454 | { | 1456 | { |
1457 | struct drm_i915_private *dev_priv = dev->dev_private; | ||
1455 | struct drm_connector *connector; | 1458 | struct drm_connector *connector; |
1456 | 1459 | ||
1457 | intel_crt_init(dev); | 1460 | intel_crt_init(dev); |
@@ -1463,13 +1466,16 @@ static void intel_setup_outputs(struct drm_device *dev) | |||
1463 | if (IS_I9XX(dev)) { | 1466 | if (IS_I9XX(dev)) { |
1464 | int found; | 1467 | int found; |
1465 | 1468 | ||
1466 | found = intel_sdvo_init(dev, SDVOB); | 1469 | if (I915_READ(SDVOB) & SDVO_DETECTED) { |
1467 | if (!found && SUPPORTS_INTEGRATED_HDMI(dev)) | 1470 | found = intel_sdvo_init(dev, SDVOB); |
1468 | intel_hdmi_init(dev, SDVOB); | 1471 | if (!found && SUPPORTS_INTEGRATED_HDMI(dev)) |
1469 | 1472 | intel_hdmi_init(dev, SDVOB); | |
1470 | found = intel_sdvo_init(dev, SDVOC); | 1473 | } |
1471 | if (!found && SUPPORTS_INTEGRATED_HDMI(dev)) | 1474 | if (!IS_G4X(dev) || (I915_READ(SDVOB) & SDVO_DETECTED)) { |
1472 | intel_hdmi_init(dev, SDVOC); | 1475 | found = intel_sdvo_init(dev, SDVOC); |
1476 | if (!found && SUPPORTS_INTEGRATED_HDMI(dev)) | ||
1477 | intel_hdmi_init(dev, SDVOC); | ||
1478 | } | ||
1473 | } else | 1479 | } else |
1474 | intel_dvo_init(dev); | 1480 | intel_dvo_init(dev); |
1475 | 1481 | ||