summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xwcfxs.c6
-rwxr-xr-xwctdm.c6
2 files changed, 8 insertions, 4 deletions
diff --git a/wcfxs.c b/wcfxs.c
index e77310f..51f4981 100755
--- a/wcfxs.c
+++ b/wcfxs.c
@@ -1218,11 +1218,11 @@ static inline void wcfxs_voicedaa_check_hook(struct wcfxs *wc, int card)
}
#endif
b = wcfxs_getreg(wc, card, 29);
-#if 0
+#if 0
{
static int count = 0;
if (!(count++ % 100)) {
- printk("Voltage: %d\n", b);
+ printk("Card %d: Voltage: %d\n", card + 1, b);
}
}
#endif
@@ -1274,6 +1274,8 @@ static inline void wcfxs_voicedaa_check_hook(struct wcfxs *wc, int card)
/* It's something else... */
wc->mod.fxo.battdebounce[card] = BATT_DEBOUNCE;
}
+ if (wc->mod.fxo.battdebounce[card])
+ wc->mod.fxo.battdebounce[card]--;
}
diff --git a/wctdm.c b/wctdm.c
index e77310f..51f4981 100755
--- a/wctdm.c
+++ b/wctdm.c
@@ -1218,11 +1218,11 @@ static inline void wcfxs_voicedaa_check_hook(struct wcfxs *wc, int card)
}
#endif
b = wcfxs_getreg(wc, card, 29);
-#if 0
+#if 0
{
static int count = 0;
if (!(count++ % 100)) {
- printk("Voltage: %d\n", b);
+ printk("Card %d: Voltage: %d\n", card + 1, b);
}
}
#endif
@@ -1274,6 +1274,8 @@ static inline void wcfxs_voicedaa_check_hook(struct wcfxs *wc, int card)
/* It's something else... */
wc->mod.fxo.battdebounce[card] = BATT_DEBOUNCE;
}
+ if (wc->mod.fxo.battdebounce[card])
+ wc->mod.fxo.battdebounce[card]--;
}