[svn-commits] sruffell: linux/trunk r8479 - /linux/trunk/drivers/dahdi/wcte12xp/base.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Apr 6 14:05:31 CDT 2010


Author: sruffell
Date: Tue Apr  6 14:05:28 2010
New Revision: 8479

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=8479
Log:
wcte12xp: Expose the maximum latency as a module parameter

Modified:
    linux/trunk/drivers/dahdi/wcte12xp/base.c

Modified: linux/trunk/drivers/dahdi/wcte12xp/base.c
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/wcte12xp/base.c?view=diff&rev=8479&r1=8478&r2=8479
==============================================================================
--- linux/trunk/drivers/dahdi/wcte12xp/base.c (original)
+++ linux/trunk/drivers/dahdi/wcte12xp/base.c Tue Apr  6 14:05:28 2010
@@ -2116,10 +2116,9 @@
 		return -ENOMEM;
 	}
 
-	if (VOICEBUS_DEFAULT_LATENCY != latency) {
-		voicebus_set_minlatency(&wc->vb, latency);
-		voicebus_set_maxlatency(&wc->vb, max_latency);
-	}
+	voicebus_set_minlatency(&wc->vb, latency);
+	voicebus_set_maxlatency(&wc->vb, max_latency);
+	max_latency = wc->vb.max_latency;
 
 	voicebus_lock_latency(&wc->vb);
 	if (voicebus_start(&wc->vb)) {
@@ -2242,6 +2241,7 @@
 module_param(aisalarmdebounce, int, S_IRUGO | S_IWUSR);
 module_param(yelalarmdebounce, int, S_IRUGO | S_IWUSR);
 module_param(latency, int, S_IRUGO);
+module_param(max_latency, int, S_IRUGO);
 #ifdef VPM_SUPPORT
 module_param(vpmsupport, int, S_IRUGO);
 module_param(vpmtsisupport, int, S_IRUGO);




More information about the svn-commits mailing list