summaryrefslogtreecommitdiff
path: root/drivers/dahdi/xpp/xbus-pcm.c
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2009-05-19 16:01:27 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2009-05-19 16:01:27 +0000
commit307fc61247e696b18d84d7fd59f6576b1aca9cec (patch)
tree3d261aa38176c64607e5de564ee778d3815bc499 /drivers/dahdi/xpp/xbus-pcm.c
parentbc110fe9b114b8e3b99f068ad9b3aac6466ee63d (diff)
xpp: fix the Astribank state machine
This generally is a case that would not happen in the wild, though. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6641 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/xpp/xbus-pcm.c')
-rw-r--r--drivers/dahdi/xpp/xbus-pcm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/dahdi/xpp/xbus-pcm.c b/drivers/dahdi/xpp/xbus-pcm.c
index 6522a91..99f9c03 100644
--- a/drivers/dahdi/xpp/xbus-pcm.c
+++ b/drivers/dahdi/xpp/xbus-pcm.c
@@ -414,7 +414,7 @@ static void reset_sync_counters(void)
(e.g: wrong firmware version, etc).
*/
if(xbus->self_ticking) {
- if(XBUS_IS(xbus, DISCONNECTED)) {
+ if(!XBUS_FLAGS(xbus, CONNECTED)) {
XBUS_DBG(GENERAL, xbus,
"Dropped packet. Is shutting down.\n");
} else {
@@ -554,7 +554,7 @@ static void update_sync_master(xbus_t *new_syncer, bool force_dahdi)
xbus_t *xbus = xbus_num(i);
if(!xbus)
continue;
- if(!XBUS_IS(xbus, DISCONNECTED) && xbus != new_syncer) {
+ if(XBUS_FLAGS(xbus, CONNECTED) && xbus != new_syncer) {
if(xbus->self_ticking)
xbus_request_sync(xbus, SYNC_MODE_PLL);
else