[dahdi-commits] tzafrir: branch linux/2.2 r7812 - in /linux/branches/2.2: ./ drivers/dahdi/xpp/

SVN commits to the DAHDI project dahdi-commits at lists.digium.com
Sun Jan 10 04:24:00 CST 2010


Author: tzafrir
Date: Sun Jan 10 04:23:56 2010
New Revision: 7812

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

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

xpp rev: 7666.

Merged revisions 7807 via svnmerge from 
http://svn.digium.com/svn/dahdi/linux/trunk

Modified:
    linux/branches/2.2/   (props changed)
    linux/branches/2.2/drivers/dahdi/xpp/xbus-pcm.c

Propchange: linux/branches/2.2/
------------------------------------------------------------------------------
Binary property 'svnmerge-integrated' - no diff available.

Modified: linux/branches/2.2/drivers/dahdi/xpp/xbus-pcm.c
URL: http://svnview.digium.com/svn/dahdi/linux/branches/2.2/drivers/dahdi/xpp/xbus-pcm.c?view=diff&rev=7812&r1=7811&r2=7812
==============================================================================
--- linux/branches/2.2/drivers/dahdi/xpp/xbus-pcm.c (original)
+++ linux/branches/2.2/drivers/dahdi/xpp/xbus-pcm.c Sun Jan 10 04:23:56 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 dahdi-commits mailing list