summaryrefslogtreecommitdiffstats
path: root/drivers/isdn/mISDN/dsp_dtmf.c
diff options
context:
space:
mode:
authorAndreas Eversberg <andreas@eversberg.eu>2009-05-22 13:04:58 +0200
committerDavid S. Miller <davem@davemloft.net>2009-05-25 09:55:47 +0200
commitb0579d7459aaa979b96016f3cac5e59fd3cb72b5 (patch)
tree7e1b7ccaba16c96dfc2bf3100920d6b182172697 /drivers/isdn/mISDN/dsp_dtmf.c
parentmISDN: Use kernel_{send,recv}msg instead of open coding (diff)
downloadlinux-b0579d7459aaa979b96016f3cac5e59fd3cb72b5.tar.xz
linux-b0579d7459aaa979b96016f3cac5e59fd3cb72b5.zip
mISDN: Fix DTMF detection enable/disable
DTMF detection was enabled when it was not supposed to. Signed-off-by: Andreas Eversberg <andreas@eversberg.eu> Signed-off-by: Karsten Keil <keil@b1-systems.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/isdn/mISDN/dsp_dtmf.c')
-rw-r--r--drivers/isdn/mISDN/dsp_dtmf.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/isdn/mISDN/dsp_dtmf.c b/drivers/isdn/mISDN/dsp_dtmf.c
index efc371c1f0dc..9ae2d33b06f7 100644
--- a/drivers/isdn/mISDN/dsp_dtmf.c
+++ b/drivers/isdn/mISDN/dsp_dtmf.c
@@ -51,6 +51,9 @@ void dsp_dtmf_hardware(struct dsp *dsp)
{
int hardware = 1;
+ if (!dsp->dtmf.enable)
+ return;
+
if (!dsp->features.hfc_dtmf)
hardware = 0;