[haiku-commits] r42877 - haiku/trunk/src/add-ons/accelerants/radeon_hd

  • From: kallisti5@xxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 18 Oct 2011 00:49:44 +0200 (CEST)

Author: kallisti5
Date: 2011-10-18 00:49:44 +0200 (Tue, 18 Oct 2011)
New Revision: 42877
Changeset: https://dev.haiku-os.org/changeset/42877

Modified:
   haiku/trunk/src/add-ons/accelerants/radeon_hd/pll.cpp
Log:
* fix pll limitations probing
* radeon HD mode setting on analog monitors is now working!


Modified: haiku/trunk/src/add-ons/accelerants/radeon_hd/pll.cpp
===================================================================
--- haiku/trunk/src/add-ons/accelerants/radeon_hd/pll.cpp       2011-10-17 
22:18:53 UTC (rev 42876)
+++ haiku/trunk/src/add-ons/accelerants/radeon_hd/pll.cpp       2011-10-17 
22:49:44 UTC (rev 42877)
@@ -69,24 +69,24 @@
        } else {
                pll->pllOutMin
                        = B_LENDIAN_TO_HOST_INT32(
-                               
firmwareInfo->info_12.ulMinPixelClockPLL_Output);
+                               
firmwareInfo->info_12.ulMinPixelClockPLL_Output) * 10;
        }
 
        pll->pllOutMax
                = B_LENDIAN_TO_HOST_INT32(
-                       firmwareInfo->info.ulMaxPixelClockPLL_Output);
+                       firmwareInfo->info.ulMaxPixelClockPLL_Output) * 10;
 
        if (tableMinor >= 4) {
                pll->lcdPllOutMin
                        = B_LENDIAN_TO_HOST_INT16(
-                               
firmwareInfo->info_14.usLcdMinPixelClockPLL_Output) * 100;
+                               
firmwareInfo->info_14.usLcdMinPixelClockPLL_Output) * 1000;
 
                if (pll->lcdPllOutMin == 0)
                        pll->lcdPllOutMin = pll->pllOutMin;
 
                pll->lcdPllOutMax
                        = B_LENDIAN_TO_HOST_INT16(
-                               
firmwareInfo->info_14.usLcdMaxPixelClockPLL_Output) * 100;
+                               
firmwareInfo->info_14.usLcdMaxPixelClockPLL_Output) * 1000;
 
                if (pll->lcdPllOutMax == 0)
                        pll->lcdPllOutMax = pll->pllOutMax;


Other related posts: