From 6ab7988dbd6f5cf378688fb388ddc92db42696d5 Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Sat, 3 Apr 2010 00:03:58 +0000 Subject: wcte12xp: Resend both framer and VPM commands when reads may have been lost. Latency conditions could cause the driver to misconfigure the VPM which would result in one way audio. DAHDI-572. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@8454 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/wctdm24xxp/base.c | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) (limited to 'drivers/dahdi/wctdm24xxp') diff --git a/drivers/dahdi/wctdm24xxp/base.c b/drivers/dahdi/wctdm24xxp/base.c index 2d040f6..59ec4be 100644 --- a/drivers/dahdi/wctdm24xxp/base.c +++ b/drivers/dahdi/wctdm24xxp/base.c @@ -1088,26 +1088,6 @@ static inline void wctdm_vpm_out(struct wctdm *wc, int unit, const unsigned int wctdm_setreg(wc, unit + NUM_MODULES, addr, val); } -/* TODO: this should go in the dahdi_voicebus module... */ -static inline void cmd_vpmadt032_retransmit(struct wctdm *wc) -{ - unsigned long flags; - struct vpmadt032 *vpmadt032 = wc->vpmadt032; - struct vpmadt032_cmd *cmd, *temp; - - BUG_ON(!vpmadt032); - - /* By moving the commands back to the pending list, they will be - * transmitted when room is available */ - spin_lock_irqsave(&vpmadt032->list_lock, flags); - list_for_each_entry_safe(cmd, temp, &vpmadt032->active_cmds, node) { - cmd->desc &= ~(__VPM150M_TX); - list_move_tail(&cmd->node, &vpmadt032->pending_cmds); - } - spin_unlock_irqrestore(&vpmadt032->list_lock, flags); - -} - static inline void cmd_retransmit(struct wctdm *wc) { int x,y; @@ -1125,7 +1105,7 @@ static inline void cmd_retransmit(struct wctdm *wc) spin_unlock_irqrestore(&wc->reglock, flags); #ifdef VPM_SUPPORT if (wc->vpmadt032) - cmd_vpmadt032_retransmit(wc); + vpmadt032_resend(wc->vpmadt032); #endif } -- cgit v1.2.3