summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsruffell <sruffell@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2008-04-24 18:17:12 +0000
committersruffell <sruffell@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2008-04-24 18:17:12 +0000
commitcb7c252abd284dc9216477c91a0031705e117dcb (patch)
treeb97c9f9f44dfa03490085fe6964d58c1b7d2b56d
parentbf4ab5c91618ea185d4de8fe0d13e6c72ecc7490 (diff)
Fixes a regression in versions 1.2.25 and 1.4.19 identified by korihor where
the wctdm driver was no longer properly recognizing polarity reversals. (closes issue #12419) git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4194 5390a7c7-147a-4af0-8ec9-7488f05a26cb
-rw-r--r--kernel/wctdm.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/kernel/wctdm.c b/kernel/wctdm.c
index f5a1118..00c8128 100644
--- a/kernel/wctdm.c
+++ b/kernel/wctdm.c
@@ -909,18 +909,18 @@ static inline void wctdm_voicedaa_check_hook(struct wctdm *wc, int card)
fxo->battdebounce = battdebounce / MS_PER_CHECK_HOOK;
}
}
+ }
- if (fxo->lastpol >= 0) {
- if (b < 0) {
- fxo->lastpol = -1;
- fxo->polaritydebounce = POLARITY_DEBOUNCE / MS_PER_CHECK_HOOK;
- }
- }
- if (fxo->lastpol <= 0) {
- if (b > 0) {
- fxo->lastpol = 1;
- fxo->polaritydebounce = POLARITY_DEBOUNCE / MS_PER_CHECK_HOOK;
- }
+ if (fxo->lastpol >= 0) {
+ if (b < 0) {
+ fxo->lastpol = -1;
+ fxo->polaritydebounce = POLARITY_DEBOUNCE / MS_PER_CHECK_HOOK;
+ }
+ }
+ if (fxo->lastpol <= 0) {
+ if (b > 0) {
+ fxo->lastpol = 1;
+ fxo->polaritydebounce = POLARITY_DEBOUNCE / MS_PER_CHECK_HOOK;
}
}