From patchwork Thu Jan 14 20:25:43 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Janusz Krzysztofik X-Patchwork-Id: 72933 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.3/8.14.2) with ESMTP id o0EKQ7gb031912 for ; Thu, 14 Jan 2010 20:26:07 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932312Ab0ANU0F (ORCPT ); Thu, 14 Jan 2010 15:26:05 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932221Ab0ANU0E (ORCPT ); Thu, 14 Jan 2010 15:26:04 -0500 Received: from d1.icnet.pl ([212.160.220.21]:47537 "EHLO d1.icnet.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757592Ab0ANU0C (ORCPT ); Thu, 14 Jan 2010 15:26:02 -0500 Received: from 87-205-12-81.ip.netia.com.pl ([87.205.12.81] helo=vclass.intranet) by d1.icnet.pl with asmtp (TLS-1.0:DHE_RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1NVWGX-0007Qi-1K; Thu, 14 Jan 2010 21:26:01 +0100 From: Janusz Krzysztofik Organization: Tele-Info-System, Poznan, PL To: Tomi Valkeinen Subject: [RFC] [PATCH] omapfb: Fix 12-bit display (RGB444 color mode) handling Date: Thu, 14 Jan 2010 21:25:43 +0100 User-Agent: KMail/1.9.10 Cc: linux-omap@vger.kernel.org, "linux-fbdev@vger.kernel.org" , "linux-fbdev-devel@lists.sourceforge.net" MIME-Version: 1.0 Content-Disposition: inline Message-Id: <201001142125.45468.jkrzyszt@tis.icnet.pl> X-SA-Exim-Scanned: No (on d1.icnet); SAEximRunCond expanded to false Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org --- git/drivers/video/omap/omapfb_main.c.orig 2010-01-14 19:30:23.000000000 +0100 +++ git/drivers/video/omap/omapfb_main.c 2010-01-14 20:31:18.000000000 +0100 @@ -473,10 +473,11 @@ static int set_color_mode(struct omapfb_ return 0; case 12: var->bits_per_pixel = 16; - plane->color_mode = OMAPFB_COLOR_RGB444; - return 0; case 16: - plane->color_mode = OMAPFB_COLOR_RGB565; + if (plane->fbdev->panel->bpp == 12) + plane->color_mode = OMAPFB_COLOR_RGB444; + else + plane->color_mode = OMAPFB_COLOR_RGB565; return 0; default: return -EINVAL;