From: Jesse Barnes Subject: Re: [PATCH] drm: parse color format support for digital displays Date: Fri, 15 Apr 2011 12:44:32 -0700 Message-ID: <20110415124432.57e8f967@jbarnes-desktop> References: <1302892813-4529-1-git-send-email-jbarnes@virtuousgeek.org> <4DA898BE.90506@redhat.com> <20110415121931.42a24970@jbarnes-desktop> <4DA89E36.2040803@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from cpoproxy2-pub.bluehost.com (cpoproxy2-pub.bluehost.com [67.222.39.38]) by gabe.freedesktop.org (Postfix) with SMTP id 5ADD69E758 for ; Fri, 15 Apr 2011 12:44:45 -0700 (PDT) In-Reply-To: <4DA89E36.2040803@redhat.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: Adam Jackson Cc: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org On Fri, 15 Apr 2011 15:36:22 -0400 Adam Jackson wrote: > On 4/15/11 3:19 PM, Jesse Barnes wrote: > > > Or is there a CEA block extension that allows for more granularity? > > CEA has bits for the two YCbCr formats too, which we should also parse > since there's plenty of 1.3+CEA blocks in the world thanks to HDMI. For > CEA blocks version 2 and up (version number in byte 2 of the CEA block, > zero-based indexing), (1 << 5) of byte 3 is 4:4:4 and (1 << 4) is 4:2:2. > Same byte as what we already check for EDID_BASIC_AUDIO, if that's any > clearer. CEA spec contains the same language about always supporting > RGB though. Ok, sounds good. I can add that a separate function that runs after we fill out display_info from the input & feature bits. > I don't have a good answer for what to do if you have a 1.4+CEA block > and the two bitfields are inconsistent, besides violence against the > monitor vendor. Hm I guess we'd take the CEA block instead as it's probably fresher at least. -- Jesse Barnes, Intel Open Source Technology Center