diff options
author | Shaun Ruffell <sruffell@digium.com> | 2010-03-01 23:15:49 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2010-03-01 23:15:49 +0000 |
commit | 87963845a1bdb22e2ae6a74465a5a6408b1c0b0d (patch) | |
tree | 8f3e19d8845634cd308830f413a610d63e9d84cc /drivers/dahdi/wcte12xp/base.c | |
parent | 1c41783269827f7bbbd65d62f96037eefda9398e (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/base.c')
-rw-r--r-- | drivers/dahdi/wcte12xp/base.c | 3 |
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); |