summaryrefslogtreecommitdiff
path: root/kernel/wct4xxp/base.c
diff options
context:
space:
mode:
authorsruffell <sruffell@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2009-06-24 18:46:27 +0000
committersruffell <sruffell@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2009-06-24 18:46:27 +0000
commit54e66b8cb829527f62732abc364d136037ae5568 (patch)
tree28e6e2f155782733c2d48e2c5184d87e79a9799b /kernel/wct4xxp/base.c
parentb3ccefd237138e94466b4eb402b974c201b55c77 (diff)
wct4xxp, wcte11xp: Use the default configuration by default at startup.
This change allows the hardware to provide timeing to asterisk before they have been properly configured. DAHDI-275. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4662 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'kernel/wct4xxp/base.c')
-rw-r--r--kernel/wct4xxp/base.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/kernel/wct4xxp/base.c b/kernel/wct4xxp/base.c
index e9bc1c2..ad8b7c6 100644
--- a/kernel/wct4xxp/base.c
+++ b/kernel/wct4xxp/base.c
@@ -6,7 +6,7 @@
* written by Jim Dixon <jim@lambdatel.com>.
*
* Copyright (C) 2001 Jim Dixon / Zapata Telephony.
- * Copyright (C) 2001-2005, Digium, Inc.
+ * Copyright (C) 2001-2009, Digium, Inc.
*
* All rights reserved.
*
@@ -3500,6 +3500,10 @@ static int __devinit t4_launch(struct t4 *wc)
return -1;
}
}
+ /* Start the first span on the card with the default configuration so
+ * that it may provide timing to Asterisk before being properly
+ * configured. */
+ t4_startup(&wc->tspans[0]->span);
set_bit(T4_CHECK_TIMING, &wc->checkflag);
spin_lock_irqsave(&wc->reglock, flags);
__t4_set_timing_source(wc,4, 0, 0);