From patchwork Fri Nov 6 07:23:31 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhao, Yakui" X-Patchwork-Id: 58014 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nA67PAed029696 for ; Fri, 6 Nov 2009 07:25:10 GMT Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 76D0D9E961; Thu, 5 Nov 2009 23:25:10 -0800 (PST) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga03.intel.com (mga03.intel.com [143.182.124.21]) by gabe.freedesktop.org (Postfix) with ESMTP id 945E79E7B1 for ; Thu, 5 Nov 2009 23:25:07 -0800 (PST) Received: from azsmga001.ch.intel.com ([10.2.17.19]) by azsmga101.ch.intel.com with ESMTP; 05 Nov 2009 23:25:06 -0800 X-ExtLoop1: 1 Received: from yakui_zhao.sh.intel.com (HELO localhost.localdomain) ([10.239.13.33]) by azsmga001.ch.intel.com with ESMTP; 05 Nov 2009 23:25:04 -0800 From: yakui.zhao@intel.com To: cworth@cworth.org Date: Fri, 6 Nov 2009 15:23:31 +0800 Message-Id: <1257492211-609-1-git-send-email-yakui.zhao@intel.com> X-Mailer: git-send-email 1.5.4.5 Cc: intel-gfx@lists.freedesktop.org Subject: [Intel-gfx] [PATCH] gfx: The DS_UNKOWN block in EDID is used as DS_RANGE X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.9 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@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org diff --git a/src/drmmode_display.c b/src/drmmode_display.c index 3417cab..2b7ee49 100644 --- a/src/drmmode_display.c +++ b/src/drmmode_display.c @@ -705,7 +705,9 @@ static int drmmode_output_lvds_edid(xf86OutputPtr output, edid_det_block_num = sizeof(edid_mon->det_mon) / sizeof(edid_mon->det_mon[0]); for (i = 0; i < edid_det_block_num; i++) { - if (edid_mon->det_mon[i].type >= DS_VENDOR && j == -1) + if ((edid_mon->det_mon[i].type >= DS_VENDOR || + edid_mon->det_mon[i].type == DS_UNKOWN) && + j == -1) j = i; if (edid_mon->det_mon[i].type == DS_RANGES) { j = i;