summaryrefslogtreecommitdiff
path: root/zaptel.c
diff options
context:
space:
mode:
authormarkster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2003-05-10 05:03:19 +0000
committermarkster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2003-05-10 05:03:19 +0000
commit58d72a7794acc5d64a4d0580fca22aae04c149ca (patch)
tree0422f539a96b0f782976ddcac3420fe06376e808 /zaptel.c
parent05009014ce4be0942d9e6caf9dee1313f8435b6d (diff)
Also clear gainalloc when freeing rxgain
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@179 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'zaptel.c')
-rwxr-xr-xzaptel.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/zaptel.c b/zaptel.c
index 207fe94..df3615d 100755
--- a/zaptel.c
+++ b/zaptel.c
@@ -3467,6 +3467,7 @@ static int zt_chan_ioctl(struct inode *inode, struct file *file, unsigned int cm
chan->rxgain = defgain;
chan->txgain = defgain;
+ chan->gainalloc = 0;
spin_unlock_irqrestore(&chan->lock, flags);
if (rxgain)