diff mbox

[2/3] drm/i915: Enable DisplayPort audio

Message ID 1284618692-2296-2-git-send-email-zhenyuw@linux.intel.com
State New, archived
Headers show

Commit Message

Zhenyu Wang Sept. 16, 2010, 6:31 a.m. UTC
None
diff mbox

Patch

diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
index 208a4ec..4a14727 100644
--- a/drivers/gpu/drm/i915/intel_dp.c
+++ b/drivers/gpu/drm/i915/intel_dp.c
@@ -1485,6 +1485,7 @@  static int intel_dp_get_modes(struct drm_connector *connector)
 	struct intel_dp *intel_dp = intel_attached_dp(connector);
 	struct drm_device *dev = intel_dp->base.base.dev;
 	struct drm_i915_private *dev_priv = dev->dev_private;
+	struct edid *edid;
 	int ret;
 
 	/* We should parse the EDID data and find out if it has an audio sink
@@ -1505,6 +1506,9 @@  static int intel_dp_get_modes(struct drm_connector *connector)
 			}
 		}
 
+		edid = (struct edid *)connector->display_info.raw_edid;
+		intel_dp->has_audio = drm_detect_monitor_audio(edid);
+
 		return ret;
 	}