xserver-multidpi/hw/xfree86/ddc
Chris Wilson 951605b466 edid: Adjust rounding of max_clock
A simple hack to accommodate various EDID who have detailed modes that
exceed the EDID's max pixel clock. The pixel clock is only defined in
units of 10MHz and often appears as the maximum pixel code of the
detailed modes, rounded to the nearest 10MHz. Adjusting the max_clock to
include an extra 5MHz prevents the parser from rejecting the detailed
modes.

The kernel uses the same fuzz and by including it in X we can use the
same modes in X as for the console.

Fixes:

  Bug 23833 - X uses different refresh rate to that set by kernel module
  https://bugs.freedesktop.org/show_bug.cgi?id=23833

In the future, we will want to try harder to keep the KMS modes but at
the same time we need to apply the restrictions as specified by the
user's configuration, and need to fill in modes for fullscreen games on
fixed-mode panels.

Reported-and-tested-by: Fabio Pedretti <fabio.ped@libero.it>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
2010-08-20 08:55:05 -07:00
..
ddc.c ddc: Fix memory leak in GetEDID_DDC1 2010-08-01 22:48:21 -04:00
DDC.HOWTO Fix some documentation typos 2008-03-03 16:11:05 -05:00
ddcProperty.c Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00
edid.h EDID: CEA extension support 2009-10-29 14:04:55 -04:00
interpret_edid.c edid: Adjust rounding of max_clock 2010-08-20 08:55:05 -07:00
Makefile.am ddc: mv xf86DDC.c ddc.c 2009-07-17 13:33:13 -04:00
print_edid.c EDID: CEA extension support 2009-10-29 14:04:55 -04:00
xf86DDC.h EDID: CEA extension support 2009-10-29 14:04:55 -04:00