diff options
author | Shaun Ruffell <sruffell@digium.com> | 2009-05-14 14:49:11 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2009-05-14 14:49:11 +0000 |
commit | 310bac31d7f749181d6ae50edf3a51be6453940f (patch) | |
tree | a71a9364e5233573cd725d317f0471ebc1168928 /drivers/dahdi | |
parent | d5f828ad8eaa61cf41b23b2e377cb14b81473430 (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')
-rw-r--r-- | drivers/dahdi/wcte12xp/base.c | 7 |
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)) |