Hi Geert, On Tuesday 13 December 2011 11:47:02 Geert Uytterhoeven wrote: > On Tue, Dec 13, 2011 at 01:40, Laurent Pinchart wrote: > >> I think you also want to do something with red, green, blue, transp when > >> entering FOURCC mode, at least setting them to zero or maybe even > >> requiring that they are zero to enter FOURCC mode (as additional safety > >> barrier). > > > > Agreed. The FOURCC mode documentation already requires those fields to be > > set to 0 by applications. > > > > I'll enforce this in fb_set_var() if info->fix has the FB_CAP_FOURCC > > capability flag set. > > So when info->fix has the FB_CAP_FOURCC capability flag set, you can no > longer enter legacy mode? No, when info->fix has the FB_CAP_FOURCC capability, you can no longer enter legacy mode with grayscale > 1. You can still use grayscale = 0 and grayscale = 1 for legacy mode. The grayscale field should not have values greater than 1 in legacy mode anyway, so that should be safe. -- Regards, Laurent Pinchart -- To unsubscribe from this list: send the line "unsubscribe linux-fbdev" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html