Fixed some feature retieval stuff. Now it work!!

Modified Files:
	mISDN/drivers/isdn/hardware/mISDN/dsp_cmx.c
 	mISDN/drivers/isdn/hardware/mISDN/dsp_core.c
This commit is contained in:
Andreas Eversberg 2007-04-03 19:42:45 +00:00
parent f4a3d41cc4
commit 19890b650c
2 changed files with 3 additions and 3 deletions

View File

@ -995,7 +995,7 @@ dsp_cmx_receive(dsp_t *dsp, struct sk_buff *skb)
/* show where to write */
#ifdef CMX_DEBUG
printk( KERN_DEBUG "cmx_receive(dsp=%lx): rx_R(dsp) rx_W(dsp)=%05x len=%d %s\n", (u_long)dsp, dsp->rx_R, dsp->rx_W, len, dsp->inst.name);
printk( KERN_DEBUG "cmx_receive(dsp=%lx): rx_R(dsp)=%05x rx_W(dsp)=%05x len=%d %s\n", (u_long)dsp, dsp->rx_R, dsp->rx_W, len, dsp->inst.name);
#endif
/* write data into rx_buffer */

View File

@ -855,19 +855,19 @@ new_dsp(mISDNstack_t *st, mISDN_pid_t *pid)
/* set dsp feture timer */
ndsp->feature_tl.function = (void *)dsp_feat;
ndsp->feature_tl.data = (long) ndsp;
ndsp->feature_state = FEAT_STATE_INIT;
if (dtmfthreshold < 20 || dtmfthreshold> 500) {
dtmfthreshold=200;
}
#warning CHRISTIAN: my define was 200000, but your default is 200*10000=2000000. what shall we do? *1000 or dtmftreshold=20 ??
ndsp->dtmf.treshold=dtmfthreshold*10000;
spin_lock_init(&ndsp->feature_lock);
init_timer(&ndsp->feature_tl);
if (!(dsp_options & DSP_OPT_NOHARDWARE)) {
ndsp->feature_state = FEAT_STATE_INIT;
ndsp->feature_tl.expires = jiffies + (HZ / 100);
add_timer(&ndsp->feature_tl);
} else {
// we don't need features, because we disabled them, so we must
// set the state to *_RECEIVED
ndsp->feature_state = FEAT_STATE_RECEIVED;