From patchwork Wed Sep 8 13:39:27 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tasslehoff Kjappfot X-Patchwork-Id: 163651 X-Patchwork-Delegate: tomi.valkeinen@nokia.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o88DYvg2008376 for ; Wed, 8 Sep 2010 13:34:57 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750840Ab0IHNe4 (ORCPT ); Wed, 8 Sep 2010 09:34:56 -0400 Received: from mail-ey0-f174.google.com ([209.85.215.174]:62560 "EHLO mail-ey0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750775Ab0IHNe4 (ORCPT ); Wed, 8 Sep 2010 09:34:56 -0400 Received: by eyb6 with SMTP id 6so29363eyb.19 for ; Wed, 08 Sep 2010 06:34:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type; bh=pi7cnndMPESKExSYrj3nJCSnkZ7dX63Ag/QAaM6Q1r4=; b=VZdGCY1WRVes3lKcqJheILbc1JC2w6mM4K6IlHqsiZNE4qSaZ3Y4PeyytEeWIC8N4V Ef5VDpzXRpHVQPB2blS36bAupI7KSgLfRDoXbmsM7Ynduz6Mx392Um43XZZzFTb95Rcb Vf5vSkPKyxE2XhR6VtQuphNGPyGJM3nOb4cxs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type; b=PhyOYGjZg2t83opuj1Mks6o5FqGwLrPsDwX0NrKVQP1l90T8XhGEdpk7xGTTcEb1yc AOVdQBvULCP/sHNinAT/i5zB1GFR2qiqhLepv7iERM3upSQTsCrQ6jBkWm9dO2RkF/zc 23+rRZud+rbz12n8dXUzt1+MHgPj/la1pUjDE= Received: by 10.213.104.211 with SMTP id q19mr145587ebo.45.1283952883252; Wed, 08 Sep 2010 06:34:43 -0700 (PDT) Received: from [192.168.0.49] (147.84-49-231.nextgentel.com [84.49.231.147]) by mx.google.com with ESMTPS id v8sm52120eeh.14.2010.09.08.06.34.41 (version=SSLv3 cipher=RC4-MD5); Wed, 08 Sep 2010 06:34:41 -0700 (PDT) Message-ID: <4C87920F.9050005@gmail.com> Date: Wed, 08 Sep 2010 15:39:27 +0200 From: Tasslehoff Kjappfot User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.8) Gecko/20100802 Lightning/1.0b2 Thunderbird/3.1.2 MIME-Version: 1.0 To: linux-omap@vger.kernel.org Subject: Patch to fix swapping of front and back porches when reading from modedb.c Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Wed, 08 Sep 2010 13:34:57 +0000 (UTC) From f6a0d18c16bfc827e18356b11c4e3cd96b836787 Mon Sep 17 00:00:00 2001 From: Tasslehoff Kjappfot Date: Wed, 8 Sep 2010 12:46:14 +0200 Subject: [PATCH] swap front and back porches for both hsync and vsync --- drivers/video/omap2/omapfb/omapfb-main.c | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/video/omap2/omapfb/omapfb-main.c b/drivers/video/omap2/omapfb/omapfb-main.c index 015831b..69e6a08 100644 --- a/drivers/video/omap2/omapfb/omapfb-main.c +++ b/drivers/video/omap2/omapfb/omapfb-main.c @@ -711,10 +711,10 @@ int check_fb_var(struct fb_info *fbi, struct fb_var_screeninfo *var) var->pixclock = timings.pixel_clock != 0 ? KHZ2PICOS(timings.pixel_clock) : 0; - var->left_margin = timings.hfp; - var->right_margin = timings.hbp; - var->upper_margin = timings.vfp; - var->lower_margin = timings.vbp; + var->left_margin = timings.hbp; + var->right_margin = timings.hfp; + var->upper_margin = timings.vbp; + var->lower_margin = timings.vfp; var->hsync_len = timings.hsw; var->vsync_len = timings.vsw; } else { @@ -1992,10 +1992,10 @@ static int omapfb_mode_to_timings(const char *mode_str, if (r != 0) { timings->pixel_clock = PICOS2KHZ(var.pixclock); - timings->hfp = var.left_margin; - timings->hbp = var.right_margin; - timings->vfp = var.upper_margin; - timings->vbp = var.lower_margin; + timings->hbp = var.left_margin; + timings->hfp = var.right_margin; + timings->vbp = var.upper_margin; + timings->vfp = var.lower_margin; timings->hsw = var.hsync_len; timings->vsw = var.vsync_len; timings->x_res = var.xres; -- 1.7.0.4