Skip to contentSkip to conversation

ARM: OMAP: omapfb: Fix 444 mode after recent LCD changes

PATCH Jonathan McDowell 1 participant 1 message Jul 8, 2006 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

The recent changes to the LCD driver have broken the 444 mode (where a 12 bit panel is driven from 16 bits in memory). This one liner fixes it for me.

-----

drivers/video/omap/omapfb_main.c +1 -0
diff -ruNp -X linux-2.6.17-e3-05/Documentation/dontdiff linux-2.6.17-e3-05/drivers/video/omap/omapfb_main.c linux-2.6.17-e3-06/drivers/video/omap/omapfb_main.c
@@ -420,6 +420,7 @@ static int set_color_mode(struct omapfb_
 		plane->color_mode = OMAPFB_COLOR_CLUT_8BPP;
 		return 0;
 	case 12:
+		var->bits_per_pixel = 16;
 		plane->color_mode = OMAPFB_COLOR_RGB444;
 		return 0;
 	case 16:

-----

J.

Signature · 1 line
Revd. Jonathan McDowell, ULC | Every bug you find is the last one.