radeon_hd: Better tracing for dig transmitter setup
* Help troubleshoot #8331 * Whitespace cleanup
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2006-2011, Haiku, Inc. All Rights Reserved.
|
* Copyright 2006-2012, Haiku, Inc. All Rights Reserved.
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*
|
*
|
||||||
* Authors:
|
* Authors:
|
||||||
@@ -889,6 +889,8 @@ encoder_analog_setup(uint32 connectorIndex, uint32 pixelClock, int command)
|
|||||||
bool
|
bool
|
||||||
encoder_analog_load_detect(uint32 connectorIndex)
|
encoder_analog_load_detect(uint32 connectorIndex)
|
||||||
{
|
{
|
||||||
|
TRACE("%s\n", __func__);
|
||||||
|
|
||||||
uint32 encoderFlags = gConnector[connectorIndex]->encoder.flags;
|
uint32 encoderFlags = gConnector[connectorIndex]->encoder.flags;
|
||||||
uint32 encoderID = gConnector[connectorIndex]->encoder.objectID;
|
uint32 encoderID = gConnector[connectorIndex]->encoder.objectID;
|
||||||
|
|
||||||
@@ -983,6 +985,7 @@ status_t
|
|||||||
transmitter_dig_setup(uint32 connectorIndex, uint32 pixelClock,
|
transmitter_dig_setup(uint32 connectorIndex, uint32 pixelClock,
|
||||||
uint8 laneNumber, uint8 laneSet, int command)
|
uint8 laneNumber, uint8 laneSet, int command)
|
||||||
{
|
{
|
||||||
|
TRACE("%s\n", __func__);
|
||||||
|
|
||||||
uint16 encoderID = gConnector[connectorIndex]->encoder.objectID;
|
uint16 encoderID = gConnector[connectorIndex]->encoder.objectID;
|
||||||
int index;
|
int index;
|
||||||
@@ -1003,6 +1006,11 @@ transmitter_dig_setup(uint32 connectorIndex, uint32 pixelClock,
|
|||||||
return B_ERROR;
|
return B_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (index < 0) {
|
||||||
|
ERROR("%s: GetIndexIntoMasterTable failed!\n", __func__);
|
||||||
|
return B_ERROR;
|
||||||
|
}
|
||||||
|
|
||||||
uint8 tableMajor;
|
uint8 tableMajor;
|
||||||
uint8 tableMinor;
|
uint8 tableMinor;
|
||||||
|
|
||||||
@@ -1020,6 +1028,9 @@ transmitter_dig_setup(uint32 connectorIndex, uint32 pixelClock,
|
|||||||
union digTransmitterControl args;
|
union digTransmitterControl args;
|
||||||
memset(&args, 0, sizeof(args));
|
memset(&args, 0, sizeof(args));
|
||||||
|
|
||||||
|
TRACE("%s: table %" B_PRIu8 ".%" B_PRIu8 "\n", __func__,
|
||||||
|
tableMajor, tableMinor);
|
||||||
|
|
||||||
int connectorObjectID
|
int connectorObjectID
|
||||||
= (gConnector[connectorIndex]->objectID & OBJECT_ID_MASK)
|
= (gConnector[connectorIndex]->objectID & OBJECT_ID_MASK)
|
||||||
>> OBJECT_ID_SHIFT;
|
>> OBJECT_ID_SHIFT;
|
||||||
@@ -1374,6 +1385,8 @@ encoder_crtc_scratch(uint8 crtcID)
|
|||||||
void
|
void
|
||||||
encoder_dpms_scratch(uint8 crtcID, bool power)
|
encoder_dpms_scratch(uint8 crtcID, bool power)
|
||||||
{
|
{
|
||||||
|
TRACE("%s\n", __func__);
|
||||||
|
|
||||||
uint32 connectorIndex = gDisplay[crtcID]->connectorIndex;
|
uint32 connectorIndex = gDisplay[crtcID]->connectorIndex;
|
||||||
uint32 encoderFlags = gConnector[connectorIndex]->encoder.flags;
|
uint32 encoderFlags = gConnector[connectorIndex]->encoder.flags;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user