linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Third repost: freq_rounding.patch
@ 2005-07-13 22:22 Jon Smirl
  2005-07-13 22:37 ` Andrew Morton
  0 siblings, 1 reply; 3+ messages in thread
From: Jon Smirl @ 2005-07-13 22:22 UTC (permalink / raw)
  To: Andrew Morton, fbdev

Can we get this into the kernel? 

--
Jon Smirl
jonsmirl@gmail.com

#Fix rounding error when mode frequency is very close to monitor limit
#Signed-off-by: Jon Smirl <jonsmirl@gmail.com>
diff --git a/drivers/video/fbmon.c b/drivers/video/fbmon.c
--- a/drivers/video/fbmon.c
+++ b/drivers/video/fbmon.c
@@ -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 ||


-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Third repost: freq_rounding.patch
  2005-07-13 22:22 Third repost: freq_rounding.patch Jon Smirl
@ 2005-07-13 22:37 ` Andrew Morton
  2005-07-14 17:38   ` James Simmons
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Morton @ 2005-07-13 22:37 UTC (permalink / raw)
  To: Jon Smirl; +Cc: linux-fbdev-devel

Jon Smirl <jonsmirl@gmail.com> wrote:
>
> Can we get this into the kernel? 
> 
> --
> Jon Smirl
> jonsmirl@gmail.com
> 
> #Fix rounding error when mode frequency is very close to monitor limit
> #Signed-off-by: Jon Smirl <jonsmirl@gmail.com>
> diff --git a/drivers/video/fbmon.c b/drivers/video/fbmon.c
> --- a/drivers/video/fbmon.c
> +++ b/drivers/video/fbmon.c
> @@ -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 ||

Yes, I'll stick these in unless someone complains.

Please don't send patches like this in the future, however:

a) Don't use a filename as the Subject:.  Use a real English-language
   description.

b) Don't add stuff like hashes to the changelog - others just have to go
   and edit it all away.

c) Don't use an email client which converts tabs to spaces.

See http://www.zip.com.au/~akpm/linux/patches/stuff/tpp.txt


-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Re: Third repost: freq_rounding.patch
  2005-07-13 22:37 ` Andrew Morton
@ 2005-07-14 17:38   ` James Simmons
  0 siblings, 0 replies; 3+ messages in thread
From: James Simmons @ 2005-07-14 17:38 UTC (permalink / raw)
  To: linux-fbdev-devel; +Cc: Jon Smirl, Andrew Morton


Please apply. What would be nice in the future is support of multiple 
color maps per framebuffer. Some hardware supports that.

On Wed, 13 Jul 2005, Andrew Morton wrote:

> Jon Smirl <jonsmirl@gmail.com> wrote:
> >
> > Can we get this into the kernel? 
> > 
> > --
> > Jon Smirl
> > jonsmirl@gmail.com
> > 
> > #Fix rounding error when mode frequency is very close to monitor limit
> > #Signed-off-by: Jon Smirl <jonsmirl@gmail.com>
> > diff --git a/drivers/video/fbmon.c b/drivers/video/fbmon.c
> > --- a/drivers/video/fbmon.c
> > +++ b/drivers/video/fbmon.c
> > @@ -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 ||
> 
> Yes, I'll stick these in unless someone complains.
> 
> Please don't send patches like this in the future, however:
> 
> a) Don't use a filename as the Subject:.  Use a real English-language
>    description.
> 
> b) Don't add stuff like hashes to the changelog - others just have to go
>    and edit it all away.
> 
> c) Don't use an email client which converts tabs to spaces.
> 
> See http://www.zip.com.au/~akpm/linux/patches/stuff/tpp.txt
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
> July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
> core and dual graphics technology at this free one hour event hosted by HP,
> AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
> _______________________________________________
> Linux-fbdev-devel mailing list
> Linux-fbdev-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/linux-fbdev-devel
> 


-------------------------------------------------------
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_id=7477&alloc_id=16492&op=click

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-07-14 17:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-13 22:22 Third repost: freq_rounding.patch Jon Smirl
2005-07-13 22:37 ` Andrew Morton
2005-07-14 17:38   ` James Simmons

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).