From 3023a1acaf23f5c970b0e850370232c19ae372d4 Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Tue, 6 Apr 2010 19:05:28 +0000 Subject: wcte12xp: Expose the maximum latency as a module parameter git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@8479 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/wcte12xp/base.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/dahdi/wcte12xp/base.c b/drivers/dahdi/wcte12xp/base.c index 837188e..37d385c 100644 --- a/drivers/dahdi/wcte12xp/base.c +++ b/drivers/dahdi/wcte12xp/base.c @@ -2116,10 +2116,9 @@ static int __devinit te12xp_init_one(struct pci_dev *pdev, const struct pci_devi 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(losalarmdebounce, int, S_IRUGO | S_IWUSR); 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); -- cgit v1.2.3