From 87963845a1bdb22e2ae6a74465a5a6408b1c0b0d Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Mon, 1 Mar 2010 23:15:49 +0000 Subject: 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 --- drivers/dahdi/wcte12xp/base.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'drivers/dahdi/wcte12xp') 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 #include +#include #include #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); -- cgit v1.2.3