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/wctdm24xxp/base.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'drivers/dahdi/wctdm24xxp') diff --git a/drivers/dahdi/wctdm24xxp/base.c b/drivers/dahdi/wctdm24xxp/base.c index 191d2ef..ff330aa 100644 --- a/drivers/dahdi/wctdm24xxp/base.c +++ b/drivers/dahdi/wctdm24xxp/base.c @@ -237,6 +237,7 @@ static int nativebridge = 0; static int ringdebounce = DEFAULT_RING_DEBOUNCE; static int fwringdetect = 0; static int latency = VOICEBUS_DEFAULT_LATENCY; +static unsigned int max_latency = VOICEBUS_DEFAULT_MAXLATENCY; static int forceload; #define MS_PER_HOOKCHECK (1) @@ -4670,6 +4671,7 @@ __wctdm_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) wc->vb.ops = &voicebus_operations; ret = voicebus_init(&wc->vb, wc->board_name); voicebus_set_minlatency(&wc->vb, latency); + voicebus_set_maxlatency(&wc->vb, max_latency); } if (ret) { @@ -4716,6 +4718,7 @@ __wctdm_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) voicebus_stop(&wc->vb); wc->vb.ops = &voicebus_operations; voicebus_set_minlatency(&wc->vb, latency); + voicebus_set_maxlatency(&wc->vb, max_latency); voicebus_set_normal_mode(&wc->vb); if (voicebus_start(&wc->vb)) BUG_ON(1); @@ -5036,6 +5039,7 @@ module_param(fxsrxgain, int, 0600); module_param(ringdebounce, int, 0600); module_param(fwringdetect, int, 0600); module_param(latency, int, 0400); +module_param(max_latency, int, 0400); module_param(neonmwi_monitor, int, 0600); module_param(neonmwi_level, int, 0600); module_param(neonmwi_envelope, int, 0600); -- cgit v1.2.3