summaryrefslogtreecommitdiff
path: root/drivers/dahdi/wctc4xxp
diff options
context:
space:
mode:
authorShaun Ruffell <sruffell@digium.com>2008-10-02 20:32:26 +0000
committerShaun Ruffell <sruffell@digium.com>2008-10-02 20:32:26 +0000
commitf946243ff654593a2904df5ca1c439491ebaa782 (patch)
treeb3e7c0591a50d1bf8ab479cd696269616fdc7839 /drivers/dahdi/wctc4xxp
parent5a982e95815dc36dc494e19e546524bc331dd075 (diff)
Mark that there is not any data waiting whenever we cleanup the private
channel structures. Issue: DAHDI-42 git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5025 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/wctc4xxp')
-rw-r--r--drivers/dahdi/wctc4xxp/base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dahdi/wctc4xxp/base.c b/drivers/dahdi/wctc4xxp/base.c
index 96fe265..d5e07aa 100644
--- a/drivers/dahdi/wctc4xxp/base.c
+++ b/drivers/dahdi/wctc4xxp/base.c
@@ -1439,6 +1439,7 @@ wctc4xxp_cleanup_channel_private(struct wcdte *wc, struct channel_pvt *cpvt)
spin_lock_bh(&cpvt->lock);
list_splice_init(&cpvt->rx_queue, &local_list);
+ dahdi_tc_clear_data_waiting(dtc);
spin_unlock_bh(&cpvt->lock);
list_for_each_entry_safe(cmd, temp, &local_list, node) {
@@ -1491,7 +1492,6 @@ do_channel_allocate(struct dahdi_transcoder_channel *dtc)
DTE_DEBUG(DTE_DEBUG_CHANNEL_SETUP,
"Entering %s for channel %p.\n", __FUNCTION__, dtc);
/* Anything on the rx queue now is old news... */
- dahdi_tc_clear_data_waiting(dtc);
wctc4xxp_cleanup_channel_private(wc, cpvt);
DTE_DEBUG(DTE_DEBUG_CHANNEL_SETUP, "Allocating a new channel: %p.\n", dtc);
wctc4xxp_srcfmt = wctc4xxp_dahdifmt_to_dtefmt(dtc->srcfmt);