summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2008-12-17 13:42:10 +1000
committerDave Airlie <airlied@redhat.com>2008-12-17 13:42:10 +1000
commit45b9ff5e250d69de0df41f68b33524f7e2ce13b7 (patch)
tree2acc136214734d5a05124cbe47a05ff929a4cbd2
parent435d996949185201a97493e131f9920a32863acd (diff)
radeon: r500 PAL timings are slightly incorrect
this stablises the PAL image at least
-rw-r--r--src/radeon_atombios.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/radeon_atombios.c b/src/radeon_atombios.c
index c9c7ae26..3d7d9f6d 100644
--- a/src/radeon_atombios.c
+++ b/src/radeon_atombios.c
@@ -1944,6 +1944,12 @@ RADEONATOMGetTVTimings(ScrnInfoPtr pScrn, int index, SET_CRTC_TIMING_PARAMETERS_
crtc_timing->ucOverscanBottom = le16_to_cpu(tv_info->aModeTimings[index].usCRTC_OverscanBottom);
crtc_timing->ucOverscanTop = le16_to_cpu(tv_info->aModeTimings[index].usCRTC_OverscanTop);
*pixel_clock = le16_to_cpu(tv_info->aModeTimings[index].usPixelClock) * 10;
+
+ if (index == 1) {
+ /* PAL timings appear to have wrong values for totals */
+ crtc_timing->usH_Total -= 1;
+ crtc_timing->usV_Total -= 1;
+ }
break;
case 2:
tv_info_v1_2 = atomDataPtr->AnalogTV_Info.AnalogTV_Info_v1_2;