projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5cba6d2
)
sm501fb: direct color visual does not work
author
Ville Syrjala
<
[email protected]
>
Tue, 4 Mar 2008 22:28:46 +0000
(14:28 -0800)
committer
Linus Torvalds
<
[email protected]
>
Wed, 5 Mar 2008 00:35:13 +0000
(16:35 -0800)
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]
>
drivers/video/sm501fb.c
patch
|
blob
|
history
diff --git
a/drivers/video/sm501fb.c
b/drivers/video/sm501fb.c
index e83dfba7e6361af564390dcd553dcdd6a1790ee5..6e7810d914ccd75c5837ab9cef2fd76609a6ba52 100644
(file)
--- a/
drivers/video/sm501fb.c
+++ b/
drivers/video/sm501fb.c
@@
-397,7
+397,7
@@
static int sm501fb_set_par_common(struct fb_info *info,
break;
case 16:
- info->fix.visual = FB_VISUAL_
DIRECT
COLOR;
+ info->fix.visual = FB_VISUAL_
TRUE
COLOR;
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: