summaryrefslogtreecommitdiff
path: root/hw/xfree86/modes/xf86EdidModes.c
AgeCommit message (Collapse)AuthorFilesLines
2009-11-20xfree86: Edid quirk for Philips LCD LP154W01Zhao Yakui1-5/+10
v1->v2: Make one condition case for one quirk instead of merging them together. This is based on the Keithp's suggestion. Move the EDID quirk for Philips LCD LP154W01 as the panel reports the vertical size in cm. https://bugs.freedesktop.org/show_bug.cgi?id=24482 Signed-off-by: Zhao Yakui <yakui.zhao@intel.com> Signed-off-by: Keith Packard <keithp@keithp.com>
2009-10-29EDID: Extend the HDTV hack to handle "1368x769"Adam Jackson1-2/+4
Hate televisions so much. Signed-off-by: Adam Jackson <ajax@redhat.com>
2009-10-29modes: Fix duplicate detection, and do it more consistentlyAdam Jackson1-0/+2
Signed-off-by: Adam Jackson <ajax@redhat.com>
2009-10-29EDID: Fix interlaced detailed timings to be frame size, not field sizeAdam Jackson1-1/+40
Signed-off-by: Adam Jackson <ajax@redhat.com>
2009-10-29modes: Decorate interlaced mode names with a trailing 'i'Adam Jackson1-2/+2
Signed-off-by: Adam Jackson <ajax@redhat.com>
2009-10-29EDID: CEA extension supportMa Ling1-135/+254
Reviewed-by: Adam Jackson <ajax@redhat.com>
2009-10-28xfree86: Fix description of DDC_QUIRK_DETAILED_USE_MAXIMUM_SIZETormod Volden1-1/+1
The message ending up in the log is misleading as to what the quirk actually does: It ignores the sizes in the detailed timings and replaces them with the display "Max Image Size". Signed-off-by: Tormod Volden <debian.tormod@gmail.com> Signed-off-by: Keith Packard <keithp@keithp.com>
2009-09-28xfree86: use the DDC size if either width or height of DisplaySize is bogus.Peter Hutterer1-1/+1
If either width or height of DisplaySize is invalid, assume that the configuration is invalid and use the DDC-reported values instead. See Comment 9, Bug 9758. http://bugs.freedesktop.org/show_bug.cgi?id=9758#c9 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Acked-by: Dave Airlie <airlied@redhat.com>
2009-07-17displayid: Implement mode decoding.Adam Jackson1-2/+2
2009-07-17ddc: s/xf86DDCMonitorSet/xf86EdidMonitorSet/Adam Jackson1-1/+1
Since we need a second path for DisplayID.
2009-06-23quirk: use first detailed timing as preferred for PEA prod 9003 (rh#492359)Ben Skeggs1-0/+5
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-05-22EDID: Add modes from Established Timings III descriptor to mode poolAdam Jackson1-3/+84
EDID 1.4, section 3.10.3.9
2009-05-15xfree86: add edid quirk for Samsung Syncmaster 2333HDJulien Cristau1-0/+5
It reports vertical size in cm in the detailed mode. X.Org bug#21750 <http://bugs.freedesktop.org/show_bug.cgi?id=21750> Reported-by: Peter Poklop <Peter.Poklop@gmx.at> Signed-off-by: Julien Cristau <jcristau@debian.org>
2009-04-22Bug#21324: Add quirk for Iiyama Vision Master 450Julien Cristau1-0/+5
Reported-by: Jeremy Henty <onepoint@starurchin.org> Signed-off-by: Julien Cristau <jcristau@debian.org>
2009-04-01xfree86: edid quirk for Philips LCD LP154W01-TLAJTormod Volden1-0/+5
This panel reports its vertical size in cm. X.Org bug#21000 <http://bugs.freedesktop.org/show_bug.cgi?id=21000> Signed-off-by: Tormod Volden <debian.tormod@gmail.com> Signed-off-by: Julien Cristau <jcristau@debian.org>
2009-02-13Build fix for xf86EdidModes.cChris Ball1-1/+1
Commit 20ac314.. forgets to declare hsize/vsize/refresh.
2009-02-13EDID: Hack for 1366x768 in standard timing descriptorsAdam Jackson1-11/+19
All you get for standard timing descriptors is horizontal size in multiples of 8 pixels (which means you can't say 1366) and height in terms of aspect ratio (which means you can't say 768). You'd like to just fuzzy-match this by walking the DMT list for sufficiently close modes, but you can't because DMT is useless and only defines a 1360x768 mode, because it's _also_ specified in terms of character cells despite providing pixel exact timings. Neither can you use CVT or GTF to generate the timings, because they _also_ believe that modes have to be a multiple of 8 pixels. You'd also hope you could find a timing definition for this in CEA, but you can't because CEA only defines transmission formats that actually exist. So there's 480p, 720p, and 1080p, but no 768p. And why would there be, after all, the encoded signal is never 768p so obviously no one would ever make a display in that format. So instead, make a CVT mode since that's likely to be handled well by just about everything, smash the horizontal active down by 2, and shift the sync pulse by 1. Underscanning the hard way. Pass the suicide.
2008-12-03Rework symbol visibility for easier maintenancePaulo Cesar Pereira de Andrade1-3/+3
Save in a few special cases, _X_EXPORT should not be used in C source files. Instead, it should be used in headers, and the proper C source include that header. Some special cases are symbols that need to be shared between modules, but not expected to be used by external drivers, and symbols that are accessible via LoaderSymbol/dlopen. This patch also adds conditionally some new sdk header files, depending on extensions enabled. These files were added to match pattern for other extensions/modules, that is, have the headers "deciding" symbol visibility in the sdk. These headers are: o Xext/panoramiXsrv.h, Xext/panoramiX.h o fbpict.h (unconditionally) o vidmodeproc.h o mioverlay.h (unconditionally, used only by xaa) o xfixes.h (unconditionally, symbols required by dri2) LoaderSymbol and similar functions now don't have different prototypes, in loaderProcs.h and xf86Module.h, so that both headers can be included, without the need of defining IN_LOADER. xf86NewInputDevice() device prototype readded to xf86Xinput.h, but not exported (and with a comment about it).
2008-11-28Make visible symbols required by xorg modules.Paulo Cesar Pereira de Andrade1-1/+1
This patch exports all symbols required by the compilable (in a x86 linux computer) xorg/driver/* modules. Still missing symbols worth mentioning are: sunleo miFindMaxBand no longer available intel (uxa/uxa-accel.c) fbShmPutImage no longer available (and should have been static) mga MGAGetClientPointer (should come from matrox's libhal) This is not a definitive "visibility" patch, as all it does is to export missing symbols, but the modules that current don't compile, may require more symbols once fixed, and third party drivers should also require more symbols exported. A "definitive" patch should export symbols defined in the sdk.
2008-11-25Fix const-mismatch warnings for DisplayModePtr'sAlan Coopersmith1-2/+2
Includes fixes for: "xf86Config.c", line 2434: warning: argument #1 is incompatible with prototype: prototype: pointer to struct _DisplayModeRec: "xf86.h", line 351 argument : pointer to const struct _DisplayModeRec "xf86EdidModes.c", line 312: warning: argument #1 is incompatible with prototype: prototype: pointer to struct _DisplayModeRec: "../../../hw/xfree86/common/xf86.h", line 351 argument : pointer to const struct _DisplayModeRec "xf86EdidModes.c", line 438: warning: assignment type mismatch: pointer to struct _DisplayModeRec "=" pointer to const struct _DisplayModeRec "xf86Modes.c", line 701: warning: assignment type mismatch: pointer to struct _DisplayModeRec "=" pointer to const struct _DisplayModeRec
2008-07-22Build fix.Adam Jackson1-0/+1
2008-07-21EDID: Various reduced blanking fixes.Adam Jackson1-14/+41
- Use a single common function to compute reducedness. - Call it from both the old-school and new-school mode validation paths. - Define monitor reduced-blanking support in accord with EDID 1.4. - Attempt to filter RB DMT modes away from the "standard" EDID pool if the monitor doesn't claim RB support.
2008-07-21EDID: For standard timing blocks, prefer DMT timings if they exist.Adam Jackson1-12/+128
2008-07-21EDID: Correct DDCEstablishedModes to conform to DMT.Adam Jackson1-6/+11
2008-07-21EDID: Add quirk to clamp max pixel clock to single DVI link speed.Adam Jackson1-0/+21
On some panels you end up with all of: - No range descriptor - No description of physical connectivity - Native panel size mode in standard timings list In principle you're supposed to use the timings for that mode from the DMT spec, but in practice the DMT spec has timings for both 1920x1200 normal and 1920x1200RB, and the standard timing field gives you no way to distinguish. And, of course, the non-RB timings don't fit in a single DVI link.
2008-05-06xf86edid: fix typo in debug outputDave Airlie1-1/+1
2008-04-09quirk: add quirk for ACR 640x350 default mode is wrongDave Airlie1-0/+6
RH #440186
2008-04-04quirk: add quirk for ACER EDIDDave Airlie1-0/+5
2008-04-02Bug #15160: quirk Proview AY765CHong Liu1-0/+5
prefer first detailed timing
2008-03-27quirk: fix LPL monitors properly.Dave Airlie1-8/+1
no point having a h cm fix when we really want to copy the sizes from the other place. RH BZ 435216
2008-03-06Get modes code building with old X servers again.Aaron Plattner1-0/+4
This change uses XORG_VERSION_CURRENT < 7.0 to mean "server newer than 1.2" since XORG_VERSION current went backwards at some point.
2008-03-03xf86DDCMonitorSet: Honor the DisplaySize from the config file.Adam Jackson1-2/+4
We honor sync ranges and pixel clock settings from the config here, no reason to ignore DisplaySize.
2008-02-29Fix CVT abuse in DDCModesFromStandardTiming.Adam Jackson1-8/+32
CVT is enough different from GTF that it should not be used on monitors that aren't expecting it. This brings us closer to what the spec says the correct behaviour is.
2008-02-29Constify the built-in mode tables.Adam Jackson1-21/+21
2008-02-29Clean up DisplayModeRec handling in many places.Adam Jackson1-2/+1
Use xf86DuplicateMode() instead of rolling our own, and change malloc+memset to calloc.
2008-02-29Add several comments documenting our EDID failures.Adam Jackson1-3/+24
2008-02-28Oops, there's one more parenthesis.Tiago Vignatti1-1/+1
2008-02-28quirks: another LPL panel with the cm/mm wrongDave Airlie1-1/+2
2008-01-23Bug #12439: add a quirk to use +hsync +vsync for the probed detailed mode.Hong Liu1-9/+28
Samsung 205BW quirk is somehow reworked.
2007-12-28EDID 1.4: First detailed mode is always preferred.Adam Jackson1-0/+2
... so act like it in the modelist generator, not just the parser.
2007-12-28EDID 1.4: Decode CVT 3-byte codes and add them to the mode pool.Adam Jackson1-0/+34
Section 3.10.3.8: CVT 3 Byte Code Descriptor Definition.
2007-12-05Bug 13308: Verify and reject obviously broken modes.Hong Liu1-0/+6
2007-11-30edid quirk for MAX 0x77e monitorDave Airlie1-1/+2
From RH bugzilla 306441
2007-10-18Add a quirk for Philips 107P5 which lacks the preferred bit on detailed timing.Eric Anholt1-5/+24
Also fix the prefer-large-75 quirk if the prefer-first-detailed bit was set, though it's not the case for the existing prefer-large-75 consumer.
2007-10-11Bug #10304,12784,11603: Add quirks for several physical size issues.Eric Anholt1-35/+172
A lot of EDID writers apparently end up stuffing centimeters (like the maximum image size field) into the detailed timings, instead of millimeters. Some of them only get it wrong in one direction. Also, add a quirk to let us mark the largest 75hz mode as preferred, which will often be used for EDID 1.0 CRTs.
2007-08-22Add _X_EXPORT to exported functions in hw/xfree86/modes/*Alex Deucher1-2/+2
Also add missing exports to hw/xfree86/loader/xf86sym.c
2007-08-08Fix the swapped decode of the EDID DTD h/v sync polarity fields.Eric Anholt1-43/+10
As a result, we can remove the quirks that existed to flip the bits back around for us. This is not confirmed in all cases due to lack of bugs containing EDID blocks associated with the quirks, but is likely true.
2007-07-10Add per-monitor config file option for maximum pixel clock.Adam Jackson1-2/+3
2007-07-02Bug #10814: Add needed quirk for Samsung 225BW like the 226BW.Gero Mudersbach1-2/+7
2007-07-02Correct the xf86EdidModes.c file description.Eric Anholt1-2/+3