From patchwork Thu Sep 3 01:33:49 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhao, Yakui" X-Patchwork-Id: 45289 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 n831YF52010388 for ; Thu, 3 Sep 2009 01:34:15 GMT Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9C220A01FA; Wed, 2 Sep 2009 18:34:15 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga14.intel.com (mga14.intel.com [143.182.124.37]) by gabe.freedesktop.org (Postfix) with ESMTP id 71A49A01F1 for ; Wed, 2 Sep 2009 18:34:12 -0700 (PDT) Received: from azsmga001.ch.intel.com ([10.2.17.19]) by azsmga102.ch.intel.com with ESMTP; 02 Sep 2009 18:34:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.44,271,1249282800"; d="scan'208";a="183506424" Received: from yakui_zhao.sh.intel.com (HELO localhost.localdomain) ([10.239.13.106]) by azsmga001.ch.intel.com with ESMTP; 02 Sep 2009 18:34:11 -0700 From: yakui.zhao@intel.com To: airlied@redhat.com Date: Thu, 3 Sep 2009 09:33:49 +0800 Message-Id: <1251941629-6694-4-git-send-email-yakui.zhao@intel.com> X-Mailer: git-send-email 1.5.4.5 In-Reply-To: <1251941629-6694-3-git-send-email-yakui.zhao@intel.com> References: <1251941629-6694-1-git-send-email-yakui.zhao@intel.com> <1251941629-6694-2-git-send-email-yakui.zhao@intel.com> <1251941629-6694-3-git-send-email-yakui.zhao@intel.com> Cc: intel-gfx@lists.freedesktop.org, dri-devel@lists.sourceforge.net Subject: [Intel-gfx] [Patch 4/4] DRM/I915: Add the default mode for CRT output without EDID 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 From: Zhao Yakui Add the default mode for the CRT output without EDID. But we only add the mode which visible part is equal to or less than 1024x768. Signed-off-by: Zhao Yakui --- drivers/gpu/drm/i915/intel_crt.c | 8 ++++++++ 1 file changed, 8 insertions(+) Index: linux-2.6/drivers/gpu/drm/i915/intel_crt.c =================================================================== --- linux-2.6.orig/drivers/gpu/drm/i915/intel_crt.c 2009-09-03 08:56:50.000000000 +0800 +++ linux-2.6/drivers/gpu/drm/i915/intel_crt.c 2009-09-03 09:28:35.000000000 +0800 @@ -458,6 +458,14 @@ intel_i2c_destroy(ddcbus); end: + if (!ret) { + /* + * when there is no EDID, add some default modes. + * But the hdisplay should not be greater than 1024. + * the vdisplay should not be greater than 768 + */ + ret = drm_add_modes_noedid(connector, 1024, 768); + } return ret; }