summaryrefslogtreecommitdiff
path: root/drivers/dahdi/wcte12xp
diff options
context:
space:
mode:
authorShaun Ruffell <sruffell@digium.com>2010-03-01 23:15:49 +0000
committerShaun Ruffell <sruffell@digium.com>2010-03-01 23:15:49 +0000
commitf688d8a4a38dcbb329b4f104699372eaf3ecfbdc (patch)
tree8f3e19d8845634cd308830f413a610d63e9d84cc /drivers/dahdi/wcte12xp
parentc78f39353dba26a1cf8cea21b52285cd79ff19cb (diff)
wctdm24xxp, wcte12xp: Add optional module parameter to set the maximum latency.
Setting the maximum latency can be useful if you have a system event that normally causes a latency increase, but you would rather have a break in the audio or frame slip, then let the latency grow to the current default maximum which is 25ms. DAHDI-278. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@8198 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/wcte12xp')
-rw-r--r--drivers/dahdi/wcte12xp/base.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/dahdi/wcte12xp/base.c b/drivers/dahdi/wcte12xp/base.c
index d38d513..58bdede 100644
--- a/drivers/dahdi/wcte12xp/base.c
+++ b/drivers/dahdi/wcte12xp/base.c
@@ -40,6 +40,7 @@
#include <linux/delay.h>
#include <linux/sched.h>
+#include <stdbool.h>
#include <dahdi/kernel.h>
#include "wct4xxp/wct4xxp.h" /* For certain definitions */
@@ -64,6 +65,7 @@ static int loopback = 0;
static int t1e1override = -1;
static int unchannelized = 0;
static int latency = VOICEBUS_DEFAULT_LATENCY;
+static unsigned int max_latency = VOICEBUS_DEFAULT_MAXLATENCY;
static int vpmsupport = 1;
static int vpmtsisupport = 0;
@@ -1880,6 +1882,7 @@ static int __devinit te12xp_init_one(struct pci_dev *pdev, const struct pci_devi
if (VOICEBUS_DEFAULT_LATENCY != latency) {
voicebus_set_minlatency(&wc->vb, latency);
+ voicebus_set_maxlatency(&wc->vb, max_latency);
}
voicebus_lock_latency(&wc->vb);