From: Jesse Barnes Subject: Re: [PATCH resend 1/2] drm: Fix EDID color fromat parsing Date: Tue, 28 Feb 2012 10:04:29 -0800 Message-ID: <20120228100429.10a52637@jbarnes-desktop> References: <1330420905-6137-1-git-send-email-lars@metafoo.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1945690257==" Return-path: Received: from oproxy7-pub.bluehost.com (oproxy7-pub.bluehost.com [67.222.55.9]) by gabe.freedesktop.org (Postfix) with SMTP id B0E679E771 for ; Tue, 28 Feb 2012 10:04:36 -0800 (PST) In-Reply-To: <1330420905-6137-1-git-send-email-lars@metafoo.de> 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: Lars-Peter Clausen Cc: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1945690257== Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/BPOiB3C/8=04faGaO_R5J/q"; protocol="application/pgp-signature" --Sig_/BPOiB3C/8=04faGaO_R5J/q Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Tue, 28 Feb 2012 10:21:44 +0100 Lars-Peter Clausen wrote: > The code should obviously check the EDID feature field for EDID feature f= lags > and not the color_formats field of the drm_display_info struct. Also upda= te the > color_formats field with new modes instead of overwriting the current mod= e. >=20 > Signed-off-by: Lars-Peter Clausen > --- > drivers/gpu/drm/drm_edid.c | 8 ++++---- > 1 files changed, 4 insertions(+), 4 deletions(-) >=20 > diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c > index 7ee7be1..a6bb2f5 100644 > --- a/drivers/gpu/drm/drm_edid.c > +++ b/drivers/gpu/drm/drm_edid.c > @@ -1700,10 +1700,10 @@ static void drm_add_display_info(struct edid *edi= d, > } > =20 > info->color_formats =3D DRM_COLOR_FORMAT_RGB444; > - if (info->color_formats & DRM_EDID_FEATURE_RGB_YCRCB444) > - info->color_formats =3D DRM_COLOR_FORMAT_YCRCB444; > - if (info->color_formats & DRM_EDID_FEATURE_RGB_YCRCB422) > - info->color_formats =3D DRM_COLOR_FORMAT_YCRCB422; > + if (edid->features & DRM_EDID_FEATURE_RGB_YCRCB444) > + info->color_formats |=3D DRM_COLOR_FORMAT_YCRCB444; > + if (edid->features & DRM_EDID_FEATURE_RGB_YCRCB422) > + info->color_formats |=3D DRM_COLOR_FORMAT_YCRCB422; > =20 > /* Get data from CEA blocks if present */ > edid_ext =3D drm_find_cea_extension(edid); Ah that's better. Do you have a TV that reports these feature bits? If so, which model? Reviewed-by: Jesse Barnes --=20 Jesse Barnes, Intel Open Source Technology Center --Sig_/BPOiB3C/8=04faGaO_R5J/q Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQIcBAEBAgAGBQJPTRctAAoJEIEoDkX4Qk9hMmwP/0QSXnXHnlz7bQcSWELr1uzO XgLbPL3ytmd0ferw0MYnrE1vBYZrEtCrA3SMGNkAIwxidQm0Zb1HyThb7dB275v1 /7uu8soZQDxrDo9dnpjFO9APpT/lYH09VBppA9y9fApPDvmap1BZtsycvVWDtxK6 7GQGfMD40T1BuS8AZFysTc2urBvf8uwQ2KJe6d9cUiwXEf6vwl/MSlXXrpaGg8Ly IuX1v6aUOZUKJIdmFpH9AHXO2yu4ToJWdTTzQc4sLtyOpBw3IDzgAYOke+Lls+Ue MCzjiC+e9B+ZEsOePQwfkBK2yekkDVOPGjdEjpveABmnavxAGSNgshpSYa3y+Aby yWUjVboQMTTRur2f3gxtX0qYu0umEsjTkA5bSNZFPhjFDR1ZPAWBUrROfVJ84XSe YTR5R+aGD1tXapIJWs+062n/8UWA1ktMb3IZeajS41SqFxhG97uomI6poB9ji0pJ Y+bbz4iHga+RiluKR3iMqLYup2QiKRp9RwSWz40J3hH0Dp9OiVLCAKZkz9ZYzBrY 5n/FFaiRY3g3KRY3uB878s/wVfibOvN8Gc6ifWhsMww6fhW+N9t6/y7XJcuG7dLF qFM4rKAMkihN3+btwRHgbRgdtOmj6yEKSZOW5/NR55l9J7dusHsK5JyovG44QBvl OvfmYbvu3mWuua+ZInT5 =troh -----END PGP SIGNATURE----- --Sig_/BPOiB3C/8=04faGaO_R5J/q-- --===============1945690257== 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 --===============1945690257==--