From 86beb338157bd206f49991c56b79ef0348be10c4 Mon Sep 17 00:00:00 2001 From: Chrisian Richter Date: Wed, 12 Jul 2006 15:57:24 +0000 Subject: [PATCH] default threshold of 100 is more accurate, also we unload the card modules after we've unloaded the layers --- drivers/isdn/hardware/mISDN/dsp_core.c | 2 +- misdn-init | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/isdn/hardware/mISDN/dsp_core.c b/drivers/isdn/hardware/mISDN/dsp_core.c index 83a9bd0..8ced46e 100644 --- a/drivers/isdn/hardware/mISDN/dsp_core.c +++ b/drivers/isdn/hardware/mISDN/dsp_core.c @@ -190,7 +190,7 @@ int dsp_options; static int poll = 0; int dsp_poll, dsp_tics; -int dtmftreshold=200L; +int dtmftreshold=100L; #ifdef MODULE MODULE_AUTHOR("Andreas Eversberg"); diff --git a/misdn-init b/misdn-init index c7f5386..ffc3ae0 100755 --- a/misdn-init +++ b/misdn-init @@ -518,7 +518,7 @@ function create_misdn_init_conf { poll=128 #pcm=1,1 dsp_options=0 -dtmftreshold=200 +dtmftreshold=100 debug=0" if [ -f ${misdn_init_conf} ]; then @@ -586,16 +586,20 @@ case "$1" in check_asterisk - unload_card_modules for mod in $(lsmod | sed -ne '/Module/!{s/\([^ ]*\).*/\1/;p}'); do case "${mod}" in - mISDN_capi | mISDN_dsp | l3udss1 | mISDN_l2 | mISDN_l1 | mISDN_isac | mISDN_core) + mISDN_capi | mISDN_dsp | l3udss1 | mISDN_l2 | mISDN_l1 | mISDN_isac ) eval "${RMMOD} ${mod}" ;; esac done + + unload_card_modules + + ${RMMOD} mISDN_core + ;; restart|--restart)