From: Andrew Shadura <bugzilla@tut.by>
To: dri-devel@lists.freedesktop.org
Subject: [PATCH] drm/edid: Fix the HDTV hack yet more.
Date: Wed, 22 Feb 2012 19:08:12 +0300 [thread overview]
Message-ID: <20120222190812.47f9b326@ileemo> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 814 bytes --]
Checking for just two variants of standard timings for
1366x768 isn't quite correct, let's check for ranges
instead.
Signed-off-by: Andrew Shadura <andrew@beldisplaytech.com>
---
drivers/gpu/drm/drm_edid.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c
index 3e927ce..49d784d 100644
--- a/drivers/gpu/drm/drm_edid.c
+++ b/drivers/gpu/drm/drm_edid.c
@@ -714,8 +714,8 @@ static int standard_timing_level(struct edid *edid)
/* HDTV hack, part 1 */
if (vrefresh_rate == 60 &&
- ((hsize == 1360 && vsize == 765) ||
- (hsize == 1368 && vsize == 769))) {
+ ((hsize >= 1360 && hsize <= 1368) &&
+ (vsize >= 765 && vsize <= 769))) {
hsize = 1366;
vsize = 768;
}
--
WBR, Andrew
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 835 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
next reply other threads:[~2012-02-22 16:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-22 16:08 Andrew Shadura [this message]
2012-02-22 18:05 ` [PATCH] drm/edid: Fix the HDTV hack yet more Adam Jackson
2012-02-22 20:56 ` Andrew Shadura
2012-02-22 22:09 ` Adam Jackson
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=20120222190812.47f9b326@ileemo \
--to=bugzilla@tut.by \
--cc=dri-devel@lists.freedesktop.org \
/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).