From: Zhenyu Wang <zhenyuw@linux.intel.com>
To: dri-devel@lists.freedesktop.org
Cc: intel-gfx@lists.freedesktop.org
Subject: [PATCH 2/3] drm/i915: Enable DisplayPort audio
Date: Thu, 16 Sep 2010 14:31:31 +0800 [thread overview]
Message-ID: <1284618692-2296-2-git-send-email-zhenyuw@linux.intel.com> (raw)
In-Reply-To: <1284618692-2296-1-git-send-email-zhenyuw@linux.intel.com>
This will turn on DP audio output by checking monitor's audio
capability.
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
---
drivers/gpu/drm/i915/intel_dp.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
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;
}
--
1.7.1
next prev parent reply other threads:[~2010-09-16 6:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-16 6:31 [PATCH 1/3] drm: add helper function to detect monitor audio capability Zhenyu Wang
2010-09-16 6:31 ` Zhenyu Wang [this message]
2010-09-19 5:00 ` [PATCH 2/3] drm/i915: Enable DisplayPort audio Zhenyu Wang
2010-09-16 6:31 ` [PATCH 3/3] drm/i915: Enable HDMI audio for monitor with audio support Zhenyu Wang
2010-09-20 19:37 ` [PATCH 1/3] drm: add helper function to detect monitor audio capability Adam Jackson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1284618692-2296-2-git-send-email-zhenyuw@linux.intel.com \
--to=zhenyuw@linux.intel.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=intel-gfx@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox