From: Adam Jackson <ajax@redhat.com>
To: dri-devel@lists.freedesktop.org
Subject: [PATCH 3/7] drm/edid: Add detailed block walk for VTB extensions
Date: Tue, 3 Aug 2010 14:38:18 -0400 [thread overview]
Message-ID: <1280860702-27226-4-git-send-email-ajax@redhat.com> (raw)
In-Reply-To: <1280860702-27226-1-git-send-email-ajax@redhat.com>
Signed-off-by: Adam Jackson <ajax@redhat.com>
---
drivers/gpu/drm/drm_edid.c | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c
index 1bc15a8..9299dd6 100644
--- a/drivers/gpu/drm/drm_edid.c
+++ b/drivers/gpu/drm/drm_edid.c
@@ -712,6 +712,19 @@ cea_for_each_detailed_block(u8 *ext, detailed_cb *cb, void *closure)
}
static void
+vtb_for_each_detailed_block(u8 *ext, detailed_cb *cb, void *closure)
+{
+ unsigned int i, n = min((int)ext[0x02], 6);
+ u8 *det_base = ext + 5;
+
+ if (ext[0x01] != 1)
+ return; /* unknown version */
+
+ for (i = 0; i < n; i++)
+ cb((struct detailed_timing *)(det_base + 18 * i), closure);
+}
+
+static void
drm_for_each_detailed_block(u8 *raw_edid, detailed_cb *cb, void *closure)
{
int i;
@@ -729,6 +742,9 @@ drm_for_each_detailed_block(u8 *raw_edid, detailed_cb *cb, void *closure)
case CEA_EXT:
cea_for_each_detailed_block(ext, cb, closure);
break;
+ case VTB_EXT:
+ vtb_for_each_detailed_block(ext, cb, closure);
+ break;
default:
break;
}
--
1.7.2
next prev parent reply other threads:[~2010-08-03 18:38 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-03 18:38 [RFC] EDID parser updates Adam Jackson
2010-08-03 18:38 ` [PATCH 1/7] drm: Remove unused fields from drm_display_info Adam Jackson
2010-08-03 18:38 ` [PATCH 2/7] drm/edid: Add detailed block walk for CEA extensions Adam Jackson
2010-08-03 18:38 ` Adam Jackson [this message]
2010-08-03 18:38 ` [PATCH 4/7] drm/edid: Rewrite mode parse to use the generic detailed block walk Adam Jackson
2010-08-03 18:38 ` [PATCH 5/7] drm/edid: Split mode lists out to their own header for readability Adam Jackson
2010-08-03 18:38 ` [PATCH 6/7] drm/edid: Re-add the reduced blanking modes to the DMT table Adam Jackson
2010-08-03 18:38 ` [PATCH 7/7] drm/edid: Add modes from CEA short video descriptor codes 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=1280860702-27226-4-git-send-email-ajax@redhat.com \
--to=ajax@redhat.com \
--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