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

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)