Commit Graph

13 Commits

Author SHA1 Message Date
jmcneill 3f50a23c18 Parse the extension block count field, and make it available in struct edid_info 2014-11-17 00:46:04 +00:00
skrll 09cb8836d7 aprint_verbose -> aprint_debug 2013-02-08 16:35:10 +00:00
christos 8dffb314e4 make this compile again. 2011-04-09 22:09:05 +00:00
christos cd9ad85fe1 - little KNF
- use struct copy instead of memcpy
- snprintf("%s") -> strlcpy
- fix NUL termination
2011-04-09 20:53:39 +00:00
jdc 25950f6e19 Remove duplicate video modes.
When parsing the established and the detailed timings, check to see if this
mode already exists in our mode list.  If the mode exists when parsing
established timings, then do nothing (we already have this exact mode).  If
the mode exists when parsing detailed timings, then replace our timings with
the timings from the monitor.
2011-04-09 18:18:28 +00:00
jdc 46869594af Display detailed timing parameters in edid_print(). 2011-03-30 18:50:37 +00:00
jdc 8856d368c4 Correct "832x624x74".
Update comments.
Reverse iteratiion, so that modes are in established timing order.
2011-03-21 19:34:27 +00:00
tsutsui c03477f121 Fix a wrong index value for edid_products[] inside #ifdef EDIDVERBOSE in
edid_findproduct(). From Yasushi Oshima via FUKAUMI Naoki in udl(4) patch.
2009-11-14 09:19:41 +00:00
macallan f658e972f2 correct the maximum supported dotclock on monitors that report one value
but claim to support modes which need something higher, while there also
initialize the edid_preferred_mode pointer before using it
2007-03-07 19:56:40 +00:00
macallan 9975dc8fd4 initialize edid_nmodes before using it (in edid_parse() ) 2007-03-07 18:49:31 +00:00
gdamore d92bd53f93 Correct two problems with established timings. First, the wrong hex value
was being read due to using the same byte twice.

Second, the ordered list of names was *backwards* in the _edid_modes list.
2006-05-13 00:39:19 +00:00
gdamore 80044be1b4 Change edid_parse() to take the edid structure as argument rather than
allocating its own.  (This is cleaner since we aren't allocating any
other data in this structure.)

Get rid of edid_free() as a result.
2006-05-11 19:05:41 +00:00
gdamore 6594783dbb Add EDID framework. (No documentation as yet.)
This allows one to query monitors (or use BIOS EDID data) and learn their
default modes, etc.  To use this, pass an EDID data block edid_parse(), and
get back nicely parsed data, including precalculated modes using GTF, etc.

The result can be printed using edid_print().

Also, if you want to use GTF to generate modes without EDID, you can use the
vesagtf pseudo-device.  vesagtf.c can also be compiled as a standalone program
to generate XFree86 modelines.
2006-05-11 01:49:53 +00:00