lkml.org 
[lkml]   [2002]   [Feb]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectSubmissions for 2.4.19-pre [RivaFB Blanking Fix (Author Unknown)]

This is the fourth (there were two seconds with different contents, oops) of several mails containing patches to be included in 2.4.19. Some are worthy of dicussion prior to inclusion and have been marked as such. The majority of these patches were found on lkml; the remaining ones have URLs listed.

The origin of this patch is unknown, but it is believed to be from lkml.

------
Michael Cohen
OhDarn.net

--- linux.orig/drivers/video/riva/fbdev.c Wed Nov 14 14:52:20 2001
+++ linux/drivers/video/riva/fbdev.c Tue Nov 27 17:37:02 2001
@@ -1703,11 +1703,31 @@
{
unsigned char tmp, vesa;
struct rivafb_info *rinfo = (struct rivafb_info *)info;
+ struct fb_cmap cmap;
+ u16 black[16];

DPRINTK("ENTER\n");

assert(rinfo != NULL);

+ /*
+ * FIXME: X seems to have some issues with this particular hardware
+ * method of blanking.. so we use a software fallback for now, pending
+ * a real fix. (Someone with documentation might want to fix this
+ * properly).
+ */
+ if (blank) {
+ memset(black, 0, 16 * sizeof(u16));
+ cmap.red = black;
+ cmap.green = black;
+ cmap.blue = black;
+ cmap.transp = NULL;
+ cmap.start = 0;
+ cmap.len = sizeof(black) / sizeof(u16);
+ fb_set_cmap(&cmap, 1, riva_setcolreg, info);
+ }
+
+#if 0
tmp = SEQin(rinfo, 0x01) & ~0x20; /* screen on/off */
vesa = CRTCin(rinfo, 0x1a) & ~0xc0; /* sync on/off */

@@ -1730,6 +1750,7 @@

SEQout(rinfo, 0x01, tmp);
CRTCout(rinfo, 0x1a, vesa);
+#endif

DPRINTK("EXIT\n");
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:24    [W:0.071 / U:0.824 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site