From patchwork Wed Aug 7 13:58:19 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lespiau, Damien" X-Patchwork-Id: 2840306 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 4C045BF535 for ; Wed, 7 Aug 2013 14:08:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A8D8B20375 for ; Wed, 7 Aug 2013 14:08:09 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 5CA8A20365 for ; Wed, 7 Aug 2013 14:08:08 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 521B5E7142 for ; Wed, 7 Aug 2013 07:08:08 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by gabe.freedesktop.org (Postfix) with ESMTP id D82D0E6377; Wed, 7 Aug 2013 06:58:30 -0700 (PDT) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP; 07 Aug 2013 06:58:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.89,833,1367996400"; d="scan'208";a="382678353" Received: from unknown (HELO strange.amr.corp.intel.com) ([10.255.14.166]) by fmsmga002.fm.intel.com with ESMTP; 07 Aug 2013 06:58:29 -0700 From: Damien Lespiau To: ajax@redhat.com Date: Wed, 7 Aug 2013 14:58:19 +0100 Message-Id: <1375883903-702-4-git-send-email-damien.lespiau@intel.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1375883903-702-1-git-send-email-damien.lespiau@intel.com> References: <1375883903-702-1-git-send-email-damien.lespiau@intel.com> Cc: intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: [Intel-gfx] [edid-decode 3/7] Decode HDMI 1.4 4k VICs X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Damien Lespiau --- edid-decode.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/edid-decode.c b/edid-decode.c index 7515181..55e48a7 100644 --- a/edid-decode.c +++ b/edid-decode.c @@ -705,7 +705,7 @@ cea_hdmi_block(unsigned char *x) if (x[8] & 0x20) { int mask = 0, formats = 0; - int len_xx, len_3d; + int len_vic, len_3d; printf(" Extended HDMI video details:\n"); if (x[9 + b] & 0x80) printf(" 3D present\n"); @@ -730,14 +730,17 @@ cea_hdmi_block(unsigned char *x) printf(" Base EDID image size is in units of 5cm\n"); break; } - len_xx = (x[10 + b] & 0xe0) >> 5; + len_vic = (x[10 + b] & 0xe0) >> 5; len_3d = (x[10 + b] & 0x1f) >> 0; b += 2; - if (len_xx) { - printf(" Skipping %d bytes that HDMI refuses to publicly" - " document\n", len_xx); - b += len_xx; + if (len_vic) { + int i; + + for (i = 0; i < len_vic; i++) + printf(" HDMI VIC %d\n", x[9 + b + i]); + + b += len_vic; } if (len_3d) {