wcte13xp: Fix bug preventing recover timing from ever being set

A bug introduced in v2.8.0 prevented the recover timing configuration from
being set properly on the hardware. This caused the card to never go into
recovered timing mode.

Signed-off-by: Russ Meyerriecks <rmeyerriecks@digium.com>
Signed-off-by: Shaun Ruffell <sruffell@digium.com>
This commit is contained in:
Russ Meyerriecks 2013-12-18 18:10:40 -06:00
parent d536c3e203
commit 05bf6ac601

View File

@ -1684,6 +1684,9 @@ t13x_spanconfig(struct file *file, struct dahdi_span *span,
if (file->f_flags & O_NONBLOCK) if (file->f_flags & O_NONBLOCK)
return -EAGAIN; return -EAGAIN;
/* Set recover timing mode */
span->syncsrc = lc->sync;
/* make sure that sigcaps gets updated if necessary */ /* make sure that sigcaps gets updated if necessary */
for (i = 0; i < wc->span.channels; i++) for (i = 0; i < wc->span.channels; i++)
t13x_chan_set_sigcap(span, i); t13x_chan_set_sigcap(span, i);