summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wct4xxp/base.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/wct4xxp/base.c b/wct4xxp/base.c
index d658e1c..d56785e 100644
--- a/wct4xxp/base.c
+++ b/wct4xxp/base.c
@@ -725,9 +725,9 @@ static const char vpm_digits[] = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '
static void t4_check_vpm450(struct t4 *wc)
{
int channel, tone, start, span;
-#if 0
+#if 1
/* There's no point checking the interrupt, it's pointless. */
- vpm450m_checkirq(wc->vpm450m);
+ if (vpm450m_checkirq(wc->vpm450m)) {
#endif
while(vpm450m_getdtmf(wc->vpm450m, &channel, &tone, &start)) {
span = channel & 0x3;
@@ -762,6 +762,7 @@ static void t4_check_vpm450(struct t4 *wc)
}
}
}
+ }
}
static void t4_check_vpm400(struct t4 *wc, unsigned int newio)
@@ -3152,8 +3153,8 @@ static void t4_vpm450_init(struct t4 *wc)
#endif
if (vpmdtmfsupport == -1) {
- printk("VPM450: hardware DTMF enabled.\n");
- vpmdtmfsupport = 1;
+ printk("VPM450: hardware DTMF disabled.\n");
+ vpmdtmfsupport = 0;
}
wc->vpm = T4_VPM_PRESENT;