From ab04891a51b4e483960030ddf66fa12e6df2a171 Mon Sep 17 00:00:00 2001 From: mattf Date: Sat, 22 Sep 2007 17:22:35 +0000 Subject: Disable that for now (DTMF detection) git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3079 5390a7c7-147a-4af0-8ec9-7488f05a26cb --- wct4xxp/base.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'wct4xxp') 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; -- cgit v1.2.3