Commit Graph

39 Commits

Author SHA1 Message Date
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
1271f8ec3a Add a new function - sort_modes() - to sort video modes in an approximate
order of preference.

The preferred mode is placed first.  If there is no preferred mode, then
the first mode with highest resolution is placed first.  Other modes are
then sorted on difference from the first mode by refresh rate, aspect
ratio, then size.
2011-04-09 18:22:31 +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
22fb3929ef Adjustments to detailed timing flags:
give the stereo modes slightly better names
  correct the hsync positive and vsync positive bits (these were reversed)
2011-03-30 18:49:56 +00:00
jdc
072e39a71f Regenerate for:
Update modes based on our current xsrc.
Minor changes to "640x480 @ 60Hz", "640x480 @ 72Hz", "800x600 @ 85Hz", and
"1024x768 @ 75Hz".
2011-03-30 18:46:32 +00:00
jdc
ca9adad15e Update modes based on our current xsrc.
Minor changes to "640x480 @ 60Hz", "640x480 @ 72Hz", "800x600 @ 85Hz", and
"1024x768 @ 75Hz".
2011-03-30 18:45:04 +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
jdc
9293120def Clarify vrefresh comment (no functional change) 2011-03-21 19:32:26 +00:00
jdc
3b22b64d85 Regenerate for:
Add EDID established timing modelines for 720x400x70 and 720x400x88
2011-03-21 19:29:54 +00:00
jdc
dd3ad2df66 Add EDID established timing modelines for 720x400x70 and 720x400x88 2011-03-21 19:28:37 +00:00
macallan
d199f85d70 fix off-by-one error which happened when the first mode with matching size is
also the best match by refresh rate
2010-10-12 16:18:19 +00:00
macallan
d3a30408f7 add a bunch of small utility functions to pick video modes based on things
like dot clock, resolution etc.
2010-05-04 21:17:10 +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
jnemeth
c0f7445ba3 add a comment explaining how to regenerate videomode.c 2009-01-21 14:40:25 +00:00
jnemeth
ae69439f5d add a comment explaining how to regenerate ediddevs.h and ediddevs_data.h 2009-01-21 14:40:02 +00:00
macallan
eab8a03193 regen 2008-10-21 06:04:37 +00:00
macallan
d0fc6875dc add 1152x900 at 66Hz and 76Hz 2008-10-21 06:03:39 +00:00
apb
96230fab84 Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.
2008-10-19 22:05:19 +00:00
macallan
f5a25c2db5 regen 2007-04-03 03:33:54 +00:00
macallan
8ec5fb10e2 add 1680x1050 @ 60.00Hz 2007-04-03 03:33: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
macallan
eb5de43ad9 add 1280x1024@70Hz 2007-03-07 18:48:37 +00:00
macallan
710e3dc0d7 add Relisys 2007-03-07 18:47:13 +00:00
macallan
f2ba35c661 add 1280x768@75Hz modeline
from Matthew Wala
2007-01-08 00:21:44 +00:00
macallan
3f9bd18e6d add 1024x768 @ 89Hz for the Apple eMac
from Marco Trillo
2006-11-11 22:14:44 +00:00
bjh21
be9c217769 Regen (__KERNEL_RCSID()). 2006-10-26 23:21:23 +00:00
bjh21
8eda8c47a7 Emit __KERNEL_RCSID() into videomodes.c so that kernels using it can be
more easily identified.
2006-10-26 23:19:50 +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
gdamore
1262ffef31 Handle interlace video refresh modes, so 1024x768i is 87Hz refresh, instead
of 43.  This corresponds more closely to the mode name as defined by VESA.
2006-05-09 17:51:03 +00:00
lukem
a1f606d3fd Use the SI capitalization for "Hz", "kHz", and "MHz" in comments and strings.
Add a space between numbers and Hz unit.
2006-03-08 23:46:22 +00:00
gdamore
7bfe0f79a2 Fix a few minor errors in the config data. Tested with a sample config. 2006-03-04 03:01:29 +00:00
gdamore
d1f918faef Added a test driver program.
Regenerate videomode.c to pick up NetBSD tag.
2006-03-04 02:37:24 +00:00
gdamore
aba10b3dc5 Initial swag at common video mode database. Not used for anything (yet). 2006-03-04 02:34:27 +00:00