summaryrefslogtreecommitdiff
path: root/drivers/dahdi/wcte12xp
diff options
context:
space:
mode:
authorShaun Ruffell <sruffell@digium.com>2009-05-14 14:49:11 +0000
committerShaun Ruffell <sruffell@digium.com>2009-05-14 14:49:11 +0000
commitabdbabbc10e3e0d04a1c9656d25945867d8f58ff (patch)
treea71a9364e5233573cd725d317f0471ebc1168928 /drivers/dahdi/wcte12xp
parentac186f1d6a0537569b144719c4d2c3ffb55b6c16 (diff)
wcte12xp: Set the syncsrc in the span appropriately.
Before this commit, dahdi_tool would report "Internally clocked" for boards supported by the wcte12xp driver both when receiving timing from the span and providing it to the span. Now it reports "Internally clocked" if providing timeing to the span, and the card if receiving timeing from the span. DAHDI-65. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6621 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/wcte12xp')
-rw-r--r--drivers/dahdi/wcte12xp/base.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/dahdi/wcte12xp/base.c b/drivers/dahdi/wcte12xp/base.c
index 7e09b71..83b87a8 100644
--- a/drivers/dahdi/wcte12xp/base.c
+++ b/drivers/dahdi/wcte12xp/base.c
@@ -935,10 +935,13 @@ static int t1xxp_spanconfig(struct dahdi_span *span, struct dahdi_lineconfig *lc
struct t1 *wc = span->pvt;
/* Do we want to SYNC on receive or not */
- if (lc->sync)
+ if (lc->sync) {
set_bit(7, &wc->ctlreg);
- else
+ span->syncsrc = span->spanno;
+ } else {
clear_bit(7, &wc->ctlreg);
+ span->syncsrc = 0;
+ }
/* If already running, apply changes immediately */
if (test_bit(DAHDI_FLAGBIT_RUNNING, &span->flags))