summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2008-09-19 08:03:34 +1000
committerDave Airlie <airlied@linux.ie>2008-09-19 08:03:34 +1000
commitdc3a6834f615a538cf582ec7e583f203d43ba204 (patch)
treed6ba45188b525d1997d20d03c130ae2b95151c61
parent075ed1d6fd1d58c1f46d556df79f44153f10edd8 (diff)
radeon: tmds bracket failure found by krh.
-rw-r--r--linux-core/radeon_atombios.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/linux-core/radeon_atombios.c b/linux-core/radeon_atombios.c
index 4d48593b..0915a7f8 100644
--- a/linux-core/radeon_atombios.c
+++ b/linux-core/radeon_atombios.c
@@ -374,9 +374,9 @@ void radeon_atombios_get_tmds_info(struct radeon_encoder *encoder)
for (i = 0; i < 4; i++) {
encoder->tmds_pll[i].freq = le16_to_cpu(tmds_info->asMiscInfo[i].usFrequency);
encoder->tmds_pll[i].value = tmds_info->asMiscInfo[i].ucPLL_ChargePump & 0x3f;
- encoder->tmds_pll[i].value |= (tmds_info->asMiscInfo[i].ucPLL_VCO_Gain & 0x3f << 6);
- encoder->tmds_pll[i].value |= (tmds_info->asMiscInfo[i].ucPLL_DutyCycle & 0xf << 12);
- encoder->tmds_pll[i].value |= (tmds_info->asMiscInfo[i].ucPLL_VoltageSwing & 0xf << 16);
+ encoder->tmds_pll[i].value |= ((tmds_info->asMiscInfo[i].ucPLL_VCO_Gain & 0x3f) << 6);
+ encoder->tmds_pll[i].value |= ((tmds_info->asMiscInfo[i].ucPLL_DutyCycle & 0xf) << 12);
+ encoder->tmds_pll[i].value |= ((tmds_info->asMiscInfo[i].ucPLL_VoltageSwing & 0xf) << 16);
DRM_DEBUG("TMDS PLL From BIOS %u %x\n",
encoder->tmds_pll[i].freq,