Message ID | 201001142125.45468.jkrzyszt@tis.icnet.pl (mailing list archive) |
---|---|
State | Not Applicable, archived |
Delegated to: | Tomi Valkeinen |
Headers | show |
--- 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;