r3234 - trunk/src/target/kernel/patches

laforge at sita.openmoko.org laforge at sita.openmoko.org
Mon Oct 22 10:51:37 CEST 2007


Author: laforge
Date: 2007-10-22 10:51:36 +0200 (Mon, 22 Oct 2007)
New Revision: 3234

Added:
   trunk/src/target/kernel/patches/s3c2410_fb-line_length.patch
Modified:
   trunk/src/target/kernel/patches/series
Log:
fix dynamic mode/resolution switching with s3c2410_fb (line_length calculation) (Stefan Schmidt)


Added: trunk/src/target/kernel/patches/s3c2410_fb-line_length.patch
===================================================================
--- trunk/src/target/kernel/patches/s3c2410_fb-line_length.patch	2007-10-22 08:46:40 UTC (rev 3233)
+++ trunk/src/target/kernel/patches/s3c2410_fb-line_length.patch	2007-10-22 08:51:36 UTC (rev 3234)
@@ -0,0 +1,23 @@
+Fix line length calculation. var->width is the size of the display in mm. We
+like to use the pixel size.
+
+Without this fix, dynamic (fbset) based resolution changes with s3c2410_fb
+don't work at all.
+
+Spotted by john cass <johnpcass at yahoo.com>
+
+Signed-off-by: Stefan Schmidt <stefan at openmoko.org>
+Signed-off-by: Harald Welte <laforge at openmoko.org>
+Index: linux-2.6.22.5-moko/drivers/video/s3c2410fb.c
+===================================================================
+--- linux-2.6.22.5-moko.orig/drivers/video/s3c2410fb.c
++++ linux-2.6.22.5-moko/drivers/video/s3c2410fb.c
+@@ -470,7 +470,7 @@
+ 			 break;
+ 	}
+ 
+-	fbi->fb->fix.line_length     = (var->width*var->bits_per_pixel)/8;
++	fbi->fb->fix.line_length     = (var->xres_virtual*var->bits_per_pixel)/8;
+ 
+ 	/* activate this new configuration */
+ 

Modified: trunk/src/target/kernel/patches/series
===================================================================
--- trunk/src/target/kernel/patches/series	2007-10-22 08:46:40 UTC (rev 3233)
+++ trunk/src/target/kernel/patches/series	2007-10-22 08:51:36 UTC (rev 3234)
@@ -40,6 +40,7 @@
 config-nr-tty-devices.patch
 hxd8-core.patch
 s3c2410_fb-truecolor.patch
+s3c2410_fb-line_length.patch
 s3c2440-nand-disable-hwecc.patch
 hxd8-tsl256x.patch
 pcf50633.patch





More information about the commitlog mailing list