[dahdi-commits] mattf: linux/trunk r8968 - /linux/trunk/drivers/dahdi/wct4xxp/base.c
SVN commits to the DAHDI project
dahdi-commits at lists.digium.com
Thu Jul 22 10:20:04 CDT 2010
Author: mattf
Date: Thu Jul 22 10:20:00 2010
New Revision: 8968
URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=8968
Log:
Make sure we check max_latency to see if it's greater than the minimum required latency for the board in question.
Modified:
linux/trunk/drivers/dahdi/wct4xxp/base.c
Modified: linux/trunk/drivers/dahdi/wct4xxp/base.c
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/wct4xxp/base.c?view=diff&rev=8968&r1=8967&r2=8968
==============================================================================
--- linux/trunk/drivers/dahdi/wct4xxp/base.c (original)
+++ linux/trunk/drivers/dahdi/wct4xxp/base.c Thu Jul 22 10:20:00 2010
@@ -4272,6 +4272,11 @@
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;
More information about the dahdi-commits
mailing list