radeon_hd: Fix AtomBIOS provided reference divider
* When AtomBIOS provides a reference divider, we should still attempt to perform calculations using it vs returning.
This commit is contained in:
@@ -191,8 +191,8 @@ pll_compute(pll_info* pll)
|
|||||||
|
|
||||||
if ((pll->flags & PLL_USE_REF_DIV) != 0) {
|
if ((pll->flags & PLL_USE_REF_DIV) != 0) {
|
||||||
TRACE("%s: using AtomBIOS reference divider\n", __func__);
|
TRACE("%s: using AtomBIOS reference divider\n", __func__);
|
||||||
return B_OK;
|
|
||||||
} else {
|
} else {
|
||||||
|
TRACE("%s: using minimum reference divider\n", __func__);
|
||||||
pll->referenceDiv = pll->minRefDiv;
|
pll->referenceDiv = pll->minRefDiv;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -335,7 +335,6 @@ pll_setup_flags(pll_info* pll, uint8 crtcID)
|
|||||||
status_t
|
status_t
|
||||||
pll_adjust(pll_info* pll, uint8 crtcID)
|
pll_adjust(pll_info* pll, uint8 crtcID)
|
||||||
{
|
{
|
||||||
// TODO: PLL flags
|
|
||||||
radeon_shared_info &info = *gInfo->shared_info;
|
radeon_shared_info &info = *gInfo->shared_info;
|
||||||
|
|
||||||
uint32 pixelClock = pll->pixelClock;
|
uint32 pixelClock = pll->pixelClock;
|
||||||
@@ -420,8 +419,6 @@ pll_adjust(pll_info* pll, uint8 crtcID)
|
|||||||
= B_LENDIAN_TO_HOST_INT16(dpLinkSpeed / 10);
|
= B_LENDIAN_TO_HOST_INT16(dpLinkSpeed / 10);
|
||||||
} else if ((encoderFlags & ATOM_DEVICE_DFP_SUPPORT)
|
} else if ((encoderFlags & ATOM_DEVICE_DFP_SUPPORT)
|
||||||
!= 0) {
|
!= 0) {
|
||||||
TRACE("%s: encoderFlags are DFP but not DP mode.\n",
|
|
||||||
__func__);
|
|
||||||
#if 0
|
#if 0
|
||||||
if (encoderMode == ATOM_ENCODER_MODE_HDMI) {
|
if (encoderMode == ATOM_ENCODER_MODE_HDMI) {
|
||||||
/* deep color support */
|
/* deep color support */
|
||||||
|
|||||||
Reference in New Issue
Block a user