diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2009-11-04 18:48:03 -0500 |
---|---|---|
committer | Alex Deucher <alexdeucher@gmail.com> | 2009-11-04 18:48:03 -0500 |
commit | 3028374488cc0f34942ac372c8d05cf15898a613 (patch) | |
tree | 054a7c31b68eb150b2e7d013b7ed42208912d98f | |
parent | 52973e8f2c4104de60d00c0e5c29a31f77bf3de7 (diff) |
ATOM/DCE3+: fix up usPixelClock calculation for Transmitter tables
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
-rw-r--r-- | src/atombios_output.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/atombios_output.c b/src/atombios_output.c index bf26c1ba..4db5d0c9 100644 --- a/src/atombios_output.c +++ b/src/atombios_output.c @@ -651,10 +651,10 @@ atombios_output_dig_transmitter_setup(xf86OutputPtr output, int action) cpu_to_le16(dp_link_clock_for_mode_clock(clock)); disp_data.v2.acConfig.fDPConnector = 1; } else if (clock > 165000) { - disp_data.v2.usPixelClock = cpu_to_le16((clock * 10 * 2) / 100); + disp_data.v2.usPixelClock = cpu_to_le16((clock / 2) / 10); disp_data.v2.acConfig.fDualLinkConnector = 1; } else { - disp_data.v2.usPixelClock = cpu_to_le16((clock * 10 * 4) / 100); + disp_data.v2.usPixelClock = cpu_to_le16(clock / 10); } if (dig_block) disp_data.v2.acConfig.ucEncoderSel = 1; @@ -687,8 +687,10 @@ atombios_output_dig_transmitter_setup(xf86OutputPtr output, int action) if (radeon_output->MonType == MT_DP) disp_data.v1.usPixelClock = cpu_to_le16(dp_link_clock_for_mode_clock(clock)); + else if (clock > 165000) + disp_data.v1.usPixelClock = cpu_to_le16((clock / 2) / 10); else - disp_data.v1.usPixelClock = cpu_to_le16((clock) / 10); + disp_data.v1.usPixelClock = cpu_to_le16(clock / 10); switch (radeon_encoder->encoder_id) { case ENCODER_OBJECT_ID_INTERNAL_UNIPHY: |