r3597 - branches/src/target/kernel/2.6.24.x/patches

laforge at sita.openmoko.org laforge at sita.openmoko.org
Thu Dec 6 12:05:14 CET 2007


Author: laforge
Date: 2007-12-06 12:05:01 +0100 (Thu, 06 Dec 2007)
New Revision: 3597

Added:
   branches/src/target/kernel/2.6.24.x/patches/s3c2410_fb-line_length.patch
Modified:
   branches/src/target/kernel/2.6.24.x/patches/series
Log:
merge commit 3234 from 2.6.22.x patchset: fix dynamic mode/resolution switching with s3c2410_fb (line_length calculation) (Stefan Schmidt)


Added: branches/src/target/kernel/2.6.24.x/patches/s3c2410_fb-line_length.patch
===================================================================
--- branches/src/target/kernel/2.6.24.x/patches/s3c2410_fb-line_length.patch	2007-12-06 10:58:31 UTC (rev 3596)
+++ branches/src/target/kernel/2.6.24.x/patches/s3c2410_fb-line_length.patch	2007-12-06 11:05:01 UTC (rev 3597)
@@ -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/drivers/video/s3c2410fb.c
+===================================================================
+--- linux-2.6.orig/drivers/video/s3c2410fb.c
++++ linux-2.6/drivers/video/s3c2410fb.c
+@@ -488,7 +488,7 @@
+ 		break;
+ 	}
+ 
+-	info->fix.line_length = (var->width * var->bits_per_pixel) / 8;
++	info->fix.line_length = (var->xres_virtual * var->bits_per_pixel) / 8;
+ 
+ 	/* activate this new configuration */
+ 

Modified: branches/src/target/kernel/2.6.24.x/patches/series
===================================================================
--- branches/src/target/kernel/2.6.24.x/patches/series	2007-12-06 10:58:31 UTC (rev 3596)
+++ branches/src/target/kernel/2.6.24.x/patches/series	2007-12-06 11:05:01 UTC (rev 3597)
@@ -37,6 +37,7 @@
 config-nr-tty-devices.patch
 hxd8-core.patch
 # s3c2410_fb-truecolor.patch evaluate
+s3c2410_fb-line_length.patch
 s3c2440-nand-disable-hwecc.patch
 hxd8-tsl256x.patch
 pcf50633.patch





More information about the commitlog mailing list