From patchwork Wed Jul 21 22:40:58 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maurus Cuelenaere X-Patchwork-Id: 113483 X-Patchwork-Delegate: tomi.valkeinen@nokia.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o6LMmmlZ028395 for ; Wed, 21 Jul 2010 22:48:54 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758956Ab0GUWsp (ORCPT ); Wed, 21 Jul 2010 18:48:45 -0400 Received: from mail-ew0-f46.google.com ([209.85.215.46]:59246 "EHLO mail-ew0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758947Ab0GUWso (ORCPT ); Wed, 21 Jul 2010 18:48:44 -0400 Received: by ewy23 with SMTP id 23so2672711ewy.19 for ; Wed, 21 Jul 2010 15:48:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:received:from:date :subject:to:cc; bh=mTf3sl7HeT04lBUPzbULThrKHxuCYpgHMBEYG+QWyBg=; b=wJN3AS2sPZxvs8UUXDlVg4p0hFw7WIiQBT3t3kwnrXBYjvBt15Dv7sa4cL3AdV0afD tO45KEro+C+yZ/4hGptlPp/Lt1N+aYw738ej7rFY9qtkFJUexlYJLui83lmjdHCuuE1Y 3mGnYQWU0s05+w1WHrr+XsehlJu/xUlLzLkoM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:date:subject:to:cc; b=XD7JIkeZnSmO6My8w8HLpjQ26ZRaGBJUnBp8cCOI7BfA+3q3B7nY7HC3WoF8aGyXD2 QgZ2FZpmO8baoY0gvzJcQjW90DuOLEWGCP9Z48xSNwkWn4LkLcPUbHLVT4AdIl63bla2 axb3qnx16h0Npo02+fkE8CEW2I00pbw3hTVKw= Received: by 10.213.2.201 with SMTP id 9mr1021631ebk.35.1279752522873; Wed, 21 Jul 2010 15:48:42 -0700 (PDT) Received: from wim2160 (d54C4B918.access.telenet.be [84.196.185.24]) by mx.google.com with ESMTPS id z55sm54152127eeh.15.2010.07.21.15.48.39 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 21 Jul 2010 15:48:40 -0700 (PDT) Message-ID: <4c477948.cf7d0e0a.2929.ffffaefe@mx.google.com> Received: by wim2160 (sSMTP sendmail emulation); Thu, 22 Jul 2010 00:48:38 +0200 From: Maurus Cuelenaere Date: Thu, 22 Jul 2010 00:40:58 +0200 Subject: [PATCH] OMAP2: OMAPFB: Fix invalid bpp for PAL and NTSC modes To: linux-fbdev@vger.kernel.org, linux-omap@vger.kernel.org, tomi.valkeinen@nokia.com Cc: ville.syrjala@nokia.com, tj@kernel.org 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 (demeter.kernel.org [140.211.167.41]); Wed, 21 Jul 2010 22:49:49 +0000 (UTC) diff --git a/drivers/video/omap2/omapfb/omapfb-main.c b/drivers/video/omap2/omapfb/omapfb-main.c index 4b4506d..500458e 100644 --- a/drivers/video/omap2/omapfb/omapfb-main.c +++ b/drivers/video/omap2/omapfb/omapfb-main.c @@ -1968,11 +1968,11 @@ static int omapfb_mode_to_timings(const char *mode_str, #ifdef CONFIG_OMAP2_DSS_VENC if (strcmp(mode_str, "pal") == 0) { *timings = omap_dss_pal_timings; - *bpp = 0; + *bpp = 24; return 0; } else if (strcmp(mode_str, "ntsc") == 0) { *timings = omap_dss_ntsc_timings; - *bpp = 0; + *bpp = 24; return 0; } #endif