[haiku-commits] haiku: hrev43827 - src/add-ons/accelerants/radeon_hd

  • From: kallisti5@xxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 6 Mar 2012 17:50:57 +0100 (CET)

hrev43827 adds 1 changeset to branch 'master'
old head: 33e204adeeb3d3b1f8f983063e0437e7bada4fb3
new head: 628e4c98bd6495b83bc8347ff7a0f81d33eb5338

----------------------------------------------------------------------------

628e4c9: radeon_hd: Better tracing for dig transmitter setup
  
  * Help troubleshoot #8331
  * Whitespace cleanup

                          [ Alexander von Gluck IV <kallisti5@xxxxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev43827
Commit:      628e4c98bd6495b83bc8347ff7a0f81d33eb5338
URL:         http://cgit.haiku-os.org/haiku/commit/?id=628e4c9
Author:      Alexander von Gluck IV <kallisti5@xxxxxxxxxxx>
Date:        Tue Mar  6 16:54:18 2012 UTC

Ticket:      https://dev.haiku-os.org/ticket/8331

----------------------------------------------------------------------------

1 files changed, 15 insertions(+), 2 deletions(-)
src/add-ons/accelerants/radeon_hd/encoder.cpp |   17 +++++++++++++++--

----------------------------------------------------------------------------

diff --git a/src/add-ons/accelerants/radeon_hd/encoder.cpp 
b/src/add-ons/accelerants/radeon_hd/encoder.cpp
index c80a5c3..5ecd602 100644
--- a/src/add-ons/accelerants/radeon_hd/encoder.cpp
+++ b/src/add-ons/accelerants/radeon_hd/encoder.cpp
@@ -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.
  *
  * Authors:
@@ -491,7 +491,7 @@ encoder_digital_setup(uint32 connectorIndex, uint32 
pixelClock, int command)
                                                                |= 
PANEL_ENCODER_SPATIAL_DITHER_DEPTH;
                                                }
                                        }
-       
+
                                        if ((lvdsFlags & 
ATOM_PANEL_MISC_TEMPORAL) != 0)
                                                args.v2.ucTemporal = 
PANEL_ENCODER_TEMPORAL_DITHER_EN;
                                                if ((lvdsFlags & 
ATOM_PANEL_MISC_888RGB) != 0) {
@@ -889,6 +889,8 @@ encoder_analog_setup(uint32 connectorIndex, uint32 
pixelClock, int command)
 bool
 encoder_analog_load_detect(uint32 connectorIndex)
 {
+       TRACE("%s\n", __func__);
+
        uint32 encoderFlags = gConnector[connectorIndex]->encoder.flags;
        uint32 encoderID = gConnector[connectorIndex]->encoder.objectID;
 
@@ -983,6 +985,7 @@ status_t
 transmitter_dig_setup(uint32 connectorIndex, uint32 pixelClock,
        uint8 laneNumber, uint8 laneSet, int command)
 {
+       TRACE("%s\n", __func__);
 
        uint16 encoderID = gConnector[connectorIndex]->encoder.objectID;
        int index;
@@ -1003,6 +1006,11 @@ transmitter_dig_setup(uint32 connectorIndex, uint32 
pixelClock,
                        return B_ERROR;
        }
 
+       if (index < 0) {
+               ERROR("%s: GetIndexIntoMasterTable failed!\n", __func__);
+               return B_ERROR;
+       }
+
        uint8 tableMajor;
        uint8 tableMinor;
 
@@ -1020,6 +1028,9 @@ transmitter_dig_setup(uint32 connectorIndex, uint32 
pixelClock,
        union digTransmitterControl args;
        memset(&args, 0, sizeof(args));
 
+       TRACE("%s: table %" B_PRIu8 ".%" B_PRIu8 "\n", __func__,
+               tableMajor, tableMinor);
+
        int connectorObjectID
                = (gConnector[connectorIndex]->objectID & OBJECT_ID_MASK)
                        >> OBJECT_ID_SHIFT;
@@ -1374,6 +1385,8 @@ encoder_crtc_scratch(uint8 crtcID)
 void
 encoder_dpms_scratch(uint8 crtcID, bool power)
 {
+       TRACE("%s\n", __func__);
+
        uint32 connectorIndex = gDisplay[crtcID]->connectorIndex;
        uint32 encoderFlags = gConnector[connectorIndex]->encoder.flags;
 


Other related posts:

  • » [haiku-commits] haiku: hrev43827 - src/add-ons/accelerants/radeon_hd - kallisti5