diff options
Diffstat (limited to 'kernel/xpp/xbus-pcm.c')
-rw-r--r-- | kernel/xpp/xbus-pcm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/xpp/xbus-pcm.c b/kernel/xpp/xbus-pcm.c index 4d75a43..bcb380d 100644 --- a/kernel/xpp/xbus-pcm.c +++ b/kernel/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 { @@ -472,7 +472,7 @@ int zaptel_sync_tick(struct zt_span *span, int is_master) if(is_master) { static int rate_limit; - if((rate_limit++ % 1003) == 0) + if((rate_limit++ % 10003) == 0) XPD_NOTICE(xpd, "Is a ZAPTEL sync master: ignore sync from ZAPTEL\n"); goto noop; } @@ -554,7 +554,7 @@ static void update_sync_master(xbus_t *new_syncer, bool force_zaptel) 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 |