[svn-commits] tzafrir: linux/trunk r7807 - /linux/trunk/drivers/dahdi/xpp/xbus-pcm.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Sun Jan 10 03:53:37 CST 2010


Author: tzafrir
Date: Sun Jan 10 03:53:34 2010
New Revision: 7807

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=7807
Log:
xpp: fixes for drift calculation.

Should help for the case of multiple quad-PRI Astribanks on a single
system.

xpp rev: 7666.

Modified:
    linux/trunk/drivers/dahdi/xpp/xbus-pcm.c

Modified: linux/trunk/drivers/dahdi/xpp/xbus-pcm.c
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/xpp/xbus-pcm.c?view=diff&rev=7807&r1=7806&r2=7807
==============================================================================
--- linux/trunk/drivers/dahdi/xpp/xbus-pcm.c (original)
+++ linux/trunk/drivers/dahdi/xpp/xbus-pcm.c Sun Jan 10 03:53:34 2010
@@ -213,9 +213,10 @@
 					lost_ticks,
 					(abs(lost_ticks) > 1) ? "s": "");
 			}
-			xbus_drift_clear(xbus);
-			if(abs(lost_ticks) > 100)
+			if(abs(lost_ticks) > 100) {
+				xbus_drift_clear(xbus);
 				ticker->count = ref_ticker->count;
+			}
 		} else {
 			/* Sample a delta */
 			usec_delta = (long)usec_diff(




More information about the svn-commits mailing list