From 3f81fb08cb6ba37c6dfd1605452523bfbf38dbbc Mon Sep 17 00:00:00 2001 From: Chrisian Richter Date: Tue, 2 Jan 2007 10:11:18 +0000 Subject: [PATCH] the mISDN_dsp parameter dtmftreshold is now correctly named dtmfthreshold --- drivers/isdn/hardware/mISDN/dsp_core.c | 14 +++++++------- misdn-init | 14 +++++++------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/drivers/isdn/hardware/mISDN/dsp_core.c b/drivers/isdn/hardware/mISDN/dsp_core.c index 4c62b47..1377323 100644 --- a/drivers/isdn/hardware/mISDN/dsp_core.c +++ b/drivers/isdn/hardware/mISDN/dsp_core.c @@ -191,7 +191,7 @@ int dsp_options; static int poll = 0; int dsp_poll, dsp_tics; -int dtmftreshold=100L; +int dtmfthreshold=100L; #ifdef MODULE MODULE_AUTHOR("Andreas Eversberg"); @@ -199,12 +199,12 @@ MODULE_AUTHOR("Andreas Eversberg"); MODULE_PARM(debug, "1i"); MODULE_PARM(options, "1i"); MODULE_PARM(poll, "1i"); -MODULE_PARM(dtmftreshold, "1i"); +MODULE_PARM(dtmfthreshold, "1i"); #else module_param(debug, uint, S_IRUGO | S_IWUSR); module_param(options, uint, S_IRUGO | S_IWUSR); module_param(poll, uint, S_IRUGO | S_IWUSR); -module_param(dtmftreshold, uint, S_IRUGO | S_IWUSR); +module_param(dtmfthreshold, uint, S_IRUGO | S_IWUSR); #endif #ifdef MODULE_LICENSE MODULE_LICENSE("GPL"); @@ -866,10 +866,10 @@ new_dsp(mISDNstack_t *st, mISDN_pid_t *pid) ndsp->feature_tl.data = (long) ndsp; ndsp->feature_state = FEAT_STATE_INIT; - if (dtmftreshold < 20 || dtmftreshold> 500) { - dtmftreshold=200; + if (dtmfthreshold < 20 || dtmfthreshold> 500) { + dtmfthreshold=200; } - ndsp->dtmf.treshold=dtmftreshold*10000; + ndsp->dtmf.treshold=dtmfthreshold*10000; spin_lock_init(&ndsp->feature_lock); init_timer(&ndsp->feature_tl); @@ -969,7 +969,7 @@ static int dsp_init(void) dsp_debug = debug; /* display revision */ - printk(KERN_INFO "mISDN_dsp: Audio DSP Rev. %s (debug=0x%x) EchoCancellor %s dtmftreshold(%d)\n", mISDN_getrev(dsp_revision), debug, EC_TYPE, dtmftreshold); + printk(KERN_INFO "mISDN_dsp: Audio DSP Rev. %s (debug=0x%x) EchoCancellor %s dtmfthreshold(%d)\n", mISDN_getrev(dsp_revision), debug, EC_TYPE, dtmfthreshold); /* set packet size */ if (poll == 0) { diff --git a/misdn-init b/misdn-init index e638e63..43f8d8e 100755 --- a/misdn-init +++ b/misdn-init @@ -65,7 +65,7 @@ poll_option= dsp_poll_option= -dtmftreshold_option= +dtmfthreshold_option= function check_cmd { if ! which "${1}" > /dev/null; then @@ -315,8 +315,8 @@ function load_card_modules { dsp_options) export dsp_options=${val} ;; - dtmftreshold) - export dtmftreshold_option="dtmftreshold=${val}" + dtmfthreshold) + export dtmfthreshold_option="dtmfthreshold=${val}" ;; debug) debug=${val} @@ -637,14 +637,14 @@ function create_misdn_init_conf { # hardware bridging. # # -# dtmftreshold= +# dtmfthreshold= # # Here you can tune the sensitivity of the dtmf tone recognizer. # poll=128 dsp_poll=128 dsp_options=0 -dtmftreshold=100 +dtmfthreshold=100 debug=0" if [ -f ${misdn_init_conf} ]; then @@ -691,8 +691,8 @@ case "$1" in load_card_modules $2 - echo "${MODPROBE} mISDN_dsp debug=0x0 options=$dsp_options $dsp_poll_option $dtmftreshold_option" - ${MODPROBE} mISDN_dsp debug=0x0 options=$dsp_options $dsp_poll_option $dtmftreshold_option + echo "${MODPROBE} mISDN_dsp debug=0x0 options=$dsp_options $dsp_poll_option $dtmfthreshold_option" + ${MODPROBE} mISDN_dsp debug=0x0 options=$dsp_options $dsp_poll_option $dtmfthreshold_option sleep 1 if [ ! -e /dev/mISDN ]; then