[Intel-gfx] [PATCH 2/3] drm/i915: Enable DisplayPort audio
Zhenyu Wang
zhenyuw at linux.intel.com
Sun Sep 19 07:00:44 CEST 2010
On 2010.09.16 14:31:31 +0800, Zhenyu Wang wrote:
> This will turn on DP audio output by checking monitor's audio
> capability.
>
oops, please ignore this one. Check EDID data after it's already
freed...
> Signed-off-by: Zhenyu Wang <zhenyuw at 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
>
> _______________________________________________
> dri-devel mailing list
> dri-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
--
Open Source Technology Center, Intel ltd.
$gpg --keyserver wwwkeys.pgp.net --recv-keys 4D781827
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.freedesktop.org/archives/intel-gfx/attachments/20100919/bdadcbc7/attachment.sig>
More information about the Intel-gfx
mailing list