[svn-commits] sruffell: linux/trunk r10304 - /linux/trunk/drivers/dahdi/dahdi-base.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Wed Nov 2 14:46:22 CDT 2011
Author: sruffell
Date: Wed Nov 2 14:46:18 2011
New Revision: 10304
URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=10304
Log:
dahdi: First span registered becomes master by default.
r10205 "dahdi: Check for master in DAHDI_STARTUP / resolves MeetMe
regression." did not handle the case for the wcb4xxp driver since it
would set DAHDI_FLAG_RUNNING as part of the probe. Therefore, the
DAHDI_STARTUP ioctl was never processed for it, creating a situation
where audio is missing on channels that are conferenced with channels on
the BRI spans.
Signed-off-by: Shaun Ruffell <sruffell at digium.com>
Modified:
linux/trunk/drivers/dahdi/dahdi-base.c
Modified: linux/trunk/drivers/dahdi/dahdi-base.c
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/dahdi-base.c?view=diff&rev=10304&r1=10303&r2=10304
==============================================================================
--- linux/trunk/drivers/dahdi/dahdi-base.c (original)
+++ linux/trunk/drivers/dahdi/dahdi-base.c Wed Nov 2 14:46:18 2011
@@ -3741,10 +3741,11 @@
spin_lock_irqsave(&chan_lock, flags);
old_master = master;
list_for_each_entry(s, &span_list, spans_node) {
- if (s->alarms)
+ if (s->alarms && old_master)
continue;
if (dahdi_is_digital_span(s) &&
- !test_bit(DAHDI_FLAGBIT_RUNNING, &s->flags))
+ !test_bit(DAHDI_FLAGBIT_RUNNING, &s->flags) &&
+ old_master)
continue;
if (!can_provide_timing(s))
continue;
More information about the svn-commits
mailing list