diff options
author | mattf <mattf@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-09-22 17:22:35 +0000 |
---|---|---|
committer | mattf <mattf@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-09-22 17:22:35 +0000 |
commit | ab04891a51b4e483960030ddf66fa12e6df2a171 (patch) | |
tree | a409d50e9bd8600aa4a714cd32b778aedf27b3a3 /wct4xxp | |
parent | 6fab4f694d95e771ae9d0509f23c6ece179efa6f (diff) |
Disable that for now (DTMF detection)
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3079 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'wct4xxp')
-rw-r--r-- | wct4xxp/base.c | 9 |
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; |