diff options
author | Matthew Fredrickson <creslin@digium.com> | 2010-07-22 15:20:00 +0000 |
---|---|---|
committer | Matthew Fredrickson <creslin@digium.com> | 2010-07-22 15:20:00 +0000 |
commit | f1e75dfcbe0bc7d13772211fa58004240aeb79cd (patch) | |
tree | 921f489737de37691316e0b057a7831160b76fa0 /drivers/dahdi/wct4xxp/base.c | |
parent | 70506b0b6d3e882dc9bda75a932a0bc20d7068b1 (diff) |
Make sure we check max_latency to see if it's greater than the minimum required latency for the board in question.
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@8968 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/wct4xxp/base.c')
-rw-r--r-- | drivers/dahdi/wct4xxp/base.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/dahdi/wct4xxp/base.c b/drivers/dahdi/wct4xxp/base.c index f49a879..d2a07ca 100644 --- a/drivers/dahdi/wct4xxp/base.c +++ b/drivers/dahdi/wct4xxp/base.c @@ -4272,6 +4272,11 @@ static int __devinit t4_init_one(struct pci_dev *pdev, const struct pci_device_i else init_latency = 2; } + + if (max_latency < init_latency) { + printk(KERN_INFO "maxlatency must be set to something greater than %d ms, increasing it to %d\n", init_latency, init_latency); + max_latency = init_latency; + } if (t4_allocate_buffers(wc, init_latency, NULL, NULL)) { return -ENOMEM; |