linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jon Smirl <jonsmirl@gmail.com>
To: Benjamin Herrenschmidt <benh@kernel.crashing.org>,
	fbdev <linux-fbdev-devel@lists.sourceforge.net>
Subject: Re: Monitor failing mode validation in fb_validate_mode()
Date: Mon, 25 Apr 2005 14:00:09 -0400	[thread overview]
Message-ID: <9e473391050425110026dfc351@mail.gmail.com> (raw)
In-Reply-To: <9e4733910504251003da4d47e@mail.gmail.com>

This fixes the problem for me, it rounds hfreq to nearest KHz and
preserves hard dot clock limit.

===== fbmon.c 1.22 vs edited =====
--- 1.22/drivers/video/fbmon.c  2005-03-31 06:06:52 -05:00
+++ edited/fbmon.c      2005-04-25 13:58:13 -04:00
@@ -1242,6 +1242,8 @@
                vtotal *= 2;

        hfreq = pixclock/htotal;
+       hfreq = (hfreq + 500) / 1000 * 1000;
+
        vfreq = hfreq/vtotal;

        return (vfreq < vfmin || vfreq > vfmax ||



-- 
Jon Smirl
jonsmirl@gmail.com


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id\x14396&op=click

      reply	other threads:[~2005-04-25 18:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-25 17:03 Monitor failing mode validation in fb_validate_mode() Jon Smirl
2005-04-25 18:00 ` Jon Smirl [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9e473391050425110026dfc351@mail.gmail.com \
    --to=jonsmirl@gmail.com \
    --cc=benh@kernel.crashing.org \
    --cc=linux-fbdev-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).