preventing DDC/EDID use if monitor reports native mode below VGA mode. This prevents the driver exporting a modelist with zero modes, resulting in black screen. Seen this at BG on Mark's old Neovo screen. Seems a DDC firmware bug inside the screen.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33628 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Rudolf Cornelissen
2009-10-17 21:31:55 +00:00
parent 67bcc8cb69
commit 0ccd8732ac
@@ -2,7 +2,7 @@
* i2c interface.
* Bus should be run at max. 100kHz: see original Philips I2C specification
*
* Rudolf Cornelissen 12/2002-8/2009
* Rudolf Cornelissen 12/2002-10/2009
*/
#define MODULE_BIT 0x00004000
@@ -642,6 +642,12 @@ i2c_ExtractSpecsEDID(edid1_info* edid, edid_specs* specs)
/* check if we actually got a modeline */
if (!specs->timing.h_display || !specs->timing.v_display) return B_ERROR;
/* check if the mode is at least VGA. If it's not, ignore specs */
if ((specs->timing.h_display < 640) || (specs->timing.v_display < 480)) {
LOG(4,("I2C: specsEDID: screen reports lower than VGA native mode, ignoring specs!\n"));
return B_ERROR;
}
/* determine screen aspect ratio */
specs->aspect =
(specs->timing.h_display / ((float)specs->timing.v_display));