From: Zhenyu Wang Subject: Re: [Intel-gfx] [PATCH 1/4] drm/edid: add helper function to detect monitor audio capability Date: Sun, 19 Sep 2010 15:56:36 +0800 Message-ID: <20100919075636.GH15857@zhen-devel.sh.intel.com> References: <1284879129-19720-1-git-send-email-zhenyuw@linux.intel.com> <1284879129-19720-2-git-send-email-zhenyuw@linux.intel.com> <89k77n$p02t9j@fmsmga001.fm.intel.com> Reply-To: Zhenyu Wang Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0911993433==" Return-path: In-Reply-To: <89k77n$p02t9j@fmsmga001.fm.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: Chris Wilson Cc: intel-gfx@lists.freedesktop.org, fengguang.wu@intel.com, dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0911993433== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jL2BoiuKMElzg3CS" Content-Disposition: inline --jL2BoiuKMElzg3CS Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2010.09.19 08:38:07 +0100, Chris Wilson wrote: >=20 > This should be cc'ed for Adam Jackson's attention as well. yep, I think I cc-ed ajax in git-send-mail command line...I'll amend the co= mmit. > > +bool drm_detect_monitor_audio(struct edid *edid) >=20 > drm_edid_has_monitor_audio()? That is a little more self-descriptive. > (I also think drm_detect_hdmi_monitor is poorly named.) yeah, that looks better. thanks. > The last time Adam had a chance to comment on this EDID check, he > suggested that we cannot rely on has_audio being a reliable indicator of > the sink's properties. If the EDID has no audio support, then return > early, otherwise perform the secondary check that extension block contains > audio data. That's also the problem we stuck for quite some time, and until recently we got reply on this issue. Adam is right, 'basic audio' bit might not be reliable, so we try to search audio block too, if there's any existence, we will accept 'basic audio' support as well. Thanks for the review! --=20 Open Source Technology Center, Intel ltd. $gpg --keyserver wwwkeys.pgp.net --recv-keys 4D781827 --jL2BoiuKMElzg3CS 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) iEYEARECAAYFAkyVwjMACgkQsQQaM014GCfYpQCdGCWYpKH26UBzpxkgOYLLizfy HyIAnRLjtzrRMZ/fCb3jIYI9o5JyVOb0 =sZDI -----END PGP SIGNATURE----- --jL2BoiuKMElzg3CS-- --===============0911993433== 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 --===============0911993433==--