The patch titled sm501fb: direct color visual does not work has been added to the -mm tree. Its filename is sm501fb-direct-color-visual-does-not-work.patch
Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: sm501fb: direct color visual does not work From: Ville Syrjala <[EMAIL PROTECTED]> The sm501fb palette code clearly does not handle direct color so change the driver to use true color visual for 16bpp. Signed-off-by: Ville Syrjala <[EMAIL PROTECTED]> Acked-by: Magnus Damm <[EMAIL PROTECTED]> Cc: Ben Dooks <[EMAIL PROTECTED]> Signed-off-by: Andrew Morton <[EMAIL PROTECTED]> --- drivers/video/sm501fb.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff -puN drivers/video/sm501fb.c~sm501fb-direct-color-visual-does-not-work drivers/video/sm501fb.c --- a/drivers/video/sm501fb.c~sm501fb-direct-color-visual-does-not-work +++ a/drivers/video/sm501fb.c @@ -397,7 +397,7 @@ static int sm501fb_set_par_common(struct break; case 16: - info->fix.visual = FB_VISUAL_DIRECTCOLOR; + info->fix.visual = FB_VISUAL_TRUECOLOR; break; case 32: @@ -613,6 +613,7 @@ static int sm501fb_set_par_crt(struct fb case 16: control |= SM501_DC_CRT_CONTROL_16BPP; + sm501fb_setup_gamma(fbi, SM501_DC_CRT_PALETTE); break; case 32: @@ -750,6 +751,7 @@ static int sm501fb_set_par_pnl(struct fb case 16: control |= SM501_DC_PANEL_CONTROL_16BPP; + sm501fb_setup_gamma(fbi, SM501_DC_PANEL_PALETTE); break; case 32: _ Patches currently in -mm which might be from [EMAIL PROTECTED] are sm501fb-direct-color-visual-does-not-work.patch sm501fb-rgb-offsets-are-reversed-in-16bpp-modes.patch sm501fb-set-transpoffset-to-0-in-8bpp-and-16bpp-modes.patch sm501fb-fix-timing-limits.patch sm501-remove-a-duplicated-table.patch sm501-add-support-for-the-sm502-programmable-pll.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html