patch-2.4.21 linux-2.4.21/drivers/video/sti/stifb.c
Next file: linux-2.4.21/drivers/video/tdfxfb.c
Previous file: linux-2.4.21/drivers/video/sti/sticore.c
Back to the patch index
Back to the overall index
- Lines: 21
- Date:
2003-06-13 07:51:37.000000000 -0700
- Orig file:
linux-2.4.20/drivers/video/sti/stifb.c
- Orig date:
2002-11-28 15:53:15.000000000 -0800
diff -urN linux-2.4.20/drivers/video/sti/stifb.c linux-2.4.21/drivers/video/sti/stifb.c
@@ -133,7 +133,7 @@
#endif
};
-static int stifb_force_bpp[MAX_STI_ROMS] = {0, };
+static int stifb_force_bpp[MAX_STI_ROMS];
/* ------------------- chipset specific functions -------------------------- */
@@ -1290,7 +1290,10 @@
fb->id = S9000_ID_A1659A;
break;
case S9000_ID_A1439A: /* CRX24/A1439A */
- bpp = 32;
+ if (force_bpp == 8 || force_bpp == 32)
+ bpp = force_bpp;
+ else
+ bpp = 32;
break;
case S9000_ID_HCRX: /* Hyperdrive/HCRX */
memset(&fb->ngle_rom, 0, sizeof(fb->ngle_rom));
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)