diff options
author | Shaun Ruffell <sruffell@digium.com> | 2010-04-06 19:05:28 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2010-04-06 19:05:28 +0000 |
commit | 3023a1acaf23f5c970b0e850370232c19ae372d4 (patch) | |
tree | c326fcb0c2522bb597e6a399513de0c397ccbd39 | |
parent | 91a60ef0e3c9c4485e5df84131ae91ba365a7079 (diff) |
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
-rw-r--r-- | drivers/dahdi/wcte12xp/base.c | 8 |
1 files 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); |