From 310bac31d7f749181d6ae50edf3a51be6453940f Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Thu, 14 May 2009 14:49:11 +0000 Subject: 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 --- drivers/dahdi/wcte12xp/base.c | 7 +++++-- 1 file 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)) -- cgit v1.2.3