From c26d7a43ad3d56c40fe4dfcef0c3ba63d1acf675 Mon Sep 17 00:00:00 2001 From: Alexander von Gluck IV Date: Tue, 13 Dec 2011 13:15:34 -0600 Subject: [PATCH] Record encoder link enumeration --- src/add-ons/accelerants/radeon_hd/accelerant.h | 1 + src/add-ons/accelerants/radeon_hd/connector.cpp | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/add-ons/accelerants/radeon_hd/accelerant.h b/src/add-ons/accelerants/radeon_hd/accelerant.h index 51294a16ac..1f40ea832c 100644 --- a/src/add-ons/accelerants/radeon_hd/accelerant.h +++ b/src/add-ons/accelerants/radeon_hd/accelerant.h @@ -132,6 +132,7 @@ struct encoder_info { uint16 objectID; uint32 type; uint32 flags; + uint32 linkEnumeration; // ex. linkb == GRAPH_OBJECT_ENUM_ID2 bool isExternal; bool isDPBridge; bool isHDMI; diff --git a/src/add-ons/accelerants/radeon_hd/connector.cpp b/src/add-ons/accelerants/radeon_hd/connector.cpp index 2dcdbcb9c8..ca968af8d7 100644 --- a/src/add-ons/accelerants/radeon_hd/connector.cpp +++ b/src/add-ons/accelerants/radeon_hd/connector.cpp @@ -891,6 +891,9 @@ connector_probe() = encoderID; gConnector[connectorIndex]->encoder.type = encoderType; + gConnector[connectorIndex]->encoder.linkEnumeration + = (encoderObjectRaw & ENUM_ID_MASK) + >> ENUM_ID_SHIFT; gConnector[connectorIndex]->encoder.isExternal = encoder_is_external(encoderID); gConnector[connectorIndex]->encoder.isDPBridge