/[linux-patches]/genpatches-2.6/trunk/2.6.14/1457_15.5_gbefb-depth-change.patch
Gentoo

Contents of /genpatches-2.6/trunk/2.6.14/1457_15.5_gbefb-depth-change.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 328 - (show annotations) (download) (as text)
Tue Mar 14 13:34:17 2006 UTC (14 years, 8 months ago) by johnm
File MIME type: text/x-diff
File size: 1314 byte(s)
2.6.14-11, rebase against local tree
1 From: Kaj-Michael Lang <milang@tal.org>
2 Date: Fri, 24 Feb 2006 21:04:15 +0000 (-0800)
3 Subject: [PATCH] gbefb: IP32 gbefb depth change fix
4 X-Git-Url: http://www.kernel.org/git/?p=linux/kernel/git/chrisw/linux-2.6.15.y.git;a=commitdiff;h=c48cc3694e1ad82407c2aa041743f2e8fb0adcde
5
6 [PATCH] gbefb: IP32 gbefb depth change fix
7
8 The gbefb driver does not update the framebuffer layers visual setting when
9 depth is changed with fbset, resulting in strange colors (very dark blue in
10 16-bit, almost black in 24-bit).
11
12 Signed-off-by: Kaj-Michael Lang <milang@tal.org>
13 Signed-off-by: Martin Michlmayr <tbm@cyrius.com>
14 Signed-off-by: Antonino Daplas <adaplas@pol.net>
15 Cc: <stable@kernel.org>
16 Signed-off-by: Andrew Morton <akpm@osdl.org>
17 Signed-off-by: Chris Wright <chrisw@sous-sol.org>
18 ---
19
20 --- a/drivers/video/gbefb.c
21 +++ b/drivers/video/gbefb.c
22 @@ -656,12 +656,15 @@ static int gbefb_set_par(struct fb_info
23 switch (bytesPerPixel) {
24 case 1:
25 SET_GBE_FIELD(WID, TYP, val, GBE_CMODE_I8);
26 + info->fix.visual = FB_VISUAL_PSEUDOCOLOR;
27 break;
28 case 2:
29 SET_GBE_FIELD(WID, TYP, val, GBE_CMODE_ARGB5);
30 + info->fix.visual = FB_VISUAL_TRUECOLOR;
31 break;
32 case 4:
33 SET_GBE_FIELD(WID, TYP, val, GBE_CMODE_RGB8);
34 + info->fix.visual = FB_VISUAL_TRUECOLOR;
35 break;
36 }
37 SET_GBE_FIELD(WID, BUF, val, GBE_BMODE_BOTH);

  ViewVC Help
Powered by ViewVC 1.1.20