From: Zhenyu Wang Subject: Re: [PATCH 2/3] drm/i915: Enable DisplayPort audio Date: Sun, 19 Sep 2010 13:00:44 +0800 Message-ID: <20100919050044.GE15857@zhen-devel.sh.intel.com> References: <1284618692-2296-1-git-send-email-zhenyuw@linux.intel.com> <1284618692-2296-2-git-send-email-zhenyuw@linux.intel.com> Reply-To: Zhenyu Wang Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0077239565==" Return-path: In-Reply-To: <1284618692-2296-2-git-send-email-zhenyuw@linux.intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: Zhenyu Wang Cc: intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0077239565== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="DIOMP1UsTsWJauNi" Content-Disposition: inline --DIOMP1UsTsWJauNi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2010.09.16 14:31:31 +0800, Zhenyu Wang wrote: > This will turn on DP audio output by checking monitor's audio > capability. >=20 oops, please ignore this one. Check EDID data after it's already freed... > Signed-off-by: Zhenyu Wang > --- > drivers/gpu/drm/i915/intel_dp.c | 4 ++++ > 1 files changed, 4 insertions(+), 0 deletions(-) >=20 > 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 =3D intel_attached_dp(connector); > struct drm_device *dev =3D intel_dp->base.base.dev; > struct drm_i915_private *dev_priv =3D dev->dev_private; > + struct edid *edid; > int ret; > =20 > /* 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) > } > } > =20 > + edid =3D (struct edid *)connector->display_info.raw_edid; > + intel_dp->has_audio =3D drm_detect_monitor_audio(edid); > + > return ret; > } > =20 > --=20 > 1.7.1 >=20 > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/dri-devel --=20 Open Source Technology Center, Intel ltd. $gpg --keyserver wwwkeys.pgp.net --recv-keys 4D781827 --DIOMP1UsTsWJauNi Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAkyVmPwACgkQsQQaM014GCfCAQCfXDyuseI1WqDkZEQ0vzqe1Xcj xe4An3OwuUN1/11LRBjDlwd6Qj2XLRw1 =emPX -----END PGP SIGNATURE----- --DIOMP1UsTsWJauNi-- --===============0077239565== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel --===============0077239565==--