radeon_hd: Remove isHDMI, isTV. Unused.

This commit is contained in:
Alexander von Gluck IV 2012-03-15 13:40:07 -05:00
parent 84bfb380c3
commit ced3b516ea
3 changed files with 6 additions and 26 deletions

View File

@ -155,8 +155,6 @@ struct encoder_info {
uint32 linkEnumeration; // ex. linkb == GRAPH_OBJECT_ENUM_ID2
bool isExternal;
bool isDPBridge;
bool isHDMI;
bool isTV;
struct pll_info pll;
};

View File

@ -701,21 +701,6 @@ connector_probe()
connector->type = connectorType;
connector->objectID = connectorObjectID;
connector->encoder.isTV = false;
connector->encoder.isHDMI = false;
switch (connectorType) {
case VIDEO_CONNECTOR_COMPOSITE:
case VIDEO_CONNECTOR_SVIDEO:
case VIDEO_CONNECTOR_9DIN:
connector->encoder.isTV = true;
break;
case VIDEO_CONNECTOR_HDMIA:
case VIDEO_CONNECTOR_HDMIB:
connector->encoder.isHDMI = true;
break;
}
connectorIndex++;
} // END for each valid connector
} // end for each display path
@ -768,14 +753,6 @@ debug_connectors()
attribute = true;
ERROR(" * is external\n");
}
if (gConnector[id]->encoder.isHDMI == true) {
attribute = true;
ERROR(" * is HDMI\n");
}
if (gConnector[id]->encoder.isTV == true) {
attribute = true;
ERROR(" * is TV\n");
}
if (gConnector[id]->encoder.isDPBridge == true) {
attribute = true;
ERROR(" * is DisplayPort bridge\n");

View File

@ -427,7 +427,12 @@ encoder_digital_setup(uint32 connectorIndex, uint32 pixelClock, int command)
}
uint32 lvdsFlags = gConnector[connectorIndex]->lvdsFlags;
bool isHdmi = gConnector[connectorIndex]->encoder.isHDMI;
bool isHdmi = false;
if (gConnector[connectorIndex]->type == VIDEO_CONNECTOR_HDMIA
|| gConnector[connectorIndex]->type == VIDEO_CONNECTOR_HDMIB) {
isHdmi = true;
}
// Prepare AtomBIOS command arguments
union lvdsEncoderControl {