diff options
author | mattf <mattf@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2005-01-17 17:20:33 +0000 |
---|---|---|
committer | mattf <mattf@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2005-01-17 17:20:33 +0000 |
commit | 44c67fd3692d61cf24fcbc76045bccf096220c3c (patch) | |
tree | 6c8f55ab65fe1bd3679c4154c8f1dda9ec7e8b17 /wctdm.c | |
parent | f014898414b69f42c56dde0c3757de0d9df84806 (diff) |
Working out a few bugs. Should be usable now.
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@564 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'wctdm.c')
-rwxr-xr-x | wctdm.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1594,6 +1594,7 @@ static int wctdm_ioctl(struct zt_chan *chan, unsigned int cmd, unsigned long dat struct wctdm_echo_coefs echoregs; struct wctdm *wc = chan->pvt; int x; + printk("We hit our IOCTL\n"); switch (cmd) { case ZT_ONHOOKTRANSFER: if (wc->modtype[chan->chanpos - 1] != MOD_TYPE_FXS) @@ -1651,6 +1652,7 @@ static int wctdm_ioctl(struct zt_chan *chan, unsigned int cmd, unsigned long dat } break; case WCTDM_SET_ECHOTUNE: + printk("Setting echo registers: \n"); if (copy_from_user(&echoregs, (struct wctdm_echo_coefs*)data, sizeof(echoregs))) return -EFAULT; @@ -1668,9 +1670,12 @@ static int wctdm_ioctl(struct zt_chan *chan, unsigned int cmd, unsigned long dat wctdm_setreg(wc, chan->chanpos - 1, 51, echoregs.coef7); wctdm_setreg(wc, chan->chanpos - 1, 52, echoregs.coef8); + printk("-- Set echo registers successfully\n"); + break; } else { return -EINVAL; + } break; default: |