EDID test: only check on wired buses.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30556 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -569,15 +569,13 @@ i2c_ReadEDID(uint8 BusNR, edid1_info *edid)
|
|||||||
|
|
||||||
void i2c_TestEDID(void)
|
void i2c_TestEDID(void)
|
||||||
{
|
{
|
||||||
uint8 bus, buses;
|
uint8 bus;
|
||||||
|
edid1_info edid;
|
||||||
|
bool *i2c_bus = &(si->ps.i2c_bus0);
|
||||||
|
|
||||||
/* set number of buses to test for */
|
/* test wired bus(es) */
|
||||||
buses = 2;
|
for (bus = 0; bus < 4; bus++) {
|
||||||
if (si->ps.secondary_head) buses = 4;
|
if (i2c_bus[bus])
|
||||||
|
i2c_ReadEDID(bus, &edid);
|
||||||
/* test bus */
|
|
||||||
for (bus = 0; bus < buses; bus++) {
|
|
||||||
edid1_info edid;
|
|
||||||
i2c_ReadEDID(bus, &edid);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user