Skip to contentSkip to conversation

REPOST PATCH: freq_rounding.patch

PATCH Jon Smirl 1 participant 1 message Jun 23, 2005 Framebuffer layer

lore
Share & tools
lore

Jon Smirl

author
#0 lore raw

What is the status of this patch? It hasn't made it into linus' tree yet.

Signature · 5 lines
Jon Smirl
[email protected]

#Fix rounding error when mode frequency is very close to monitor limit
#Signed-off-by: Jon Smirl <[email protected]>
drivers/video/fbmon.c +2 -0
@@ -1241,6 +1241,8 @@ int fb_validate_mode(const struct fb_var
 		vtotal *= 2;
 
 	hfreq = pixclock/htotal;
+	hfreq = (hfreq + 500) / 1000 * 1000;
+	
 	vfreq = hfreq/vtotal;
 
 	return (vfreq < vfmin || vfreq > vfmax ||

-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click