mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
sm501fb: direct color visual does not work
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]> Acked-by: Ben Dooks <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
5cba6d22e3
commit
5619d823bc
1 changed files with 3 additions and 1 deletions
|
|
@ -397,7 +397,7 @@ static int sm501fb_set_par_common(struct fb_info *info,
|
|||
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_info *info)
|
|||
|
||||
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_info *info)
|
|||
|
||||
case 16:
|
||||
control |= SM501_DC_PANEL_CONTROL_16BPP;
|
||||
sm501fb_setup_gamma(fbi, SM501_DC_PANEL_PALETTE);
|
||||
break;
|
||||
|
||||
case 32:
|
||||
|
|
|
|||
Loading…
Reference in a new issue