summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Hilber <sparkie@lowbyte.de>2008-08-14 08:00:00 +0000
committerPaul Menzel <paulepanter@users.sourceforge.net>2009-06-06 13:50:05 +0200
commit3842d96432266ce342e76155fe14f0e31da5aab3 (patch)
tree685b7993d9f44e12a2ea4a4018a791b723e4886e
parent4d3a9ea7070578aa14b6cd16ab714018a56a73e4 (diff)
downloadxf86-video-ati-frc-3842d96432266ce342e76155fe14f0e31da5aab3.tar.gz
xf86-video-ati-frc-3842d96432266ce342e76155fe14f0e31da5aab3.tar.bz2
Fixed a minor bug during init of PLL.
Signed-off-by: Thomas Hilber <sparkie@lowbyte.de> Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net>
-rw-r--r--src/radeon_video.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/radeon_video.c b/src/radeon_video.c
index 677fddb..5d43b15 100644
--- a/src/radeon_video.c
+++ b/src/radeon_video.c
@@ -2980,7 +2980,7 @@ RADEONDisplayVideo(
*
* at most one of both methods is allowed at any time
*/
-#define RESYNC_FIELD_POLARITY_METHOD1
+//#define RESYNC_FIELD_POLARITY_METHOD1
//#define RESYNC_FIELD_POLARITY_METHOD2
//#define DEBUG
@@ -3054,13 +3054,14 @@ RADEONDisplayVideo(
} else {
#endif
VBL_SUB(vsync.tv_now, vsync.tv_vbl, skew)
- sync_point_disp += skew.tv_usec - SYNC_POINT;
if (skew_prev.tv_sec != ~0) {
+ sync_point_disp += skew.tv_usec - SYNC_POINT;
VBL_SUB(skew, skew_prev, drift_speed);
VBL_TV2USEC(drift_speed, tmp);
ds_usecs += tmp;
+ ++cnt;
}
- if (!(cnt++ % SYNC_PLL_DIVIDER) && skew_prev.tv_sec != ~0) {
+ if (skew_prev.tv_sec != ~0 && !(cnt % SYNC_PLL_DIVIDER)) {
sync_point_disp /= SYNC_PLL_DIVIDER;
#ifdef RESYNC_FIELD_POLARITY_METHOD2
if (vsync.vbls & 1 && B(1)) {