forked from luck/tmp_suning_uos_patched
[PATCH] gbefb: IP32 gbefb depth change fix
The gbefb driver does not update the framebuffer layers visual setting when depth is changed with fbset, resulting in strange colors (very dark blue in 16-bit, almost black in 24-bit). Signed-off-by: Kaj-Michael Lang <milang@tal.org> Signed-off-by: Martin Michlmayr <tbm@cyrius.com> Signed-off-by: Antonino Daplas <adaplas@pol.net> Cc: <stable@kernel.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
2b932f6cf0
commit
68b06deb2b
|
@ -656,12 +656,15 @@ static int gbefb_set_par(struct fb_info *info)
|
|||
switch (bytesPerPixel) {
|
||||
case 1:
|
||||
SET_GBE_FIELD(WID, TYP, val, GBE_CMODE_I8);
|
||||
info->fix.visual = FB_VISUAL_PSEUDOCOLOR;
|
||||
break;
|
||||
case 2:
|
||||
SET_GBE_FIELD(WID, TYP, val, GBE_CMODE_ARGB5);
|
||||
info->fix.visual = FB_VISUAL_TRUECOLOR;
|
||||
break;
|
||||
case 4:
|
||||
SET_GBE_FIELD(WID, TYP, val, GBE_CMODE_RGB8);
|
||||
info->fix.visual = FB_VISUAL_TRUECOLOR;
|
||||
break;
|
||||
}
|
||||
SET_GBE_FIELD(WID, BUF, val, GBE_BMODE_BOTH);
|
||||
|
|
Loading…
Reference in New Issue
Block a user