summaryrefslogtreecommitdiff
path: root/drivers/dahdi/voicebus/voicebus.c
diff options
context:
space:
mode:
authorShaun Ruffell <sruffell@digium.com>2010-04-04 16:14:59 +0000
committerShaun Ruffell <sruffell@digium.com>2010-04-04 16:14:59 +0000
commit60458ae6806bf08ae15f6990b7fb7b9b5b9f0565 (patch)
treec00b3095f4aef6cd89a426e7471b748c3909c022 /drivers/dahdi/voicebus/voicebus.c
parentf0445a9b9990aa3eb55d67ff62933082b603e00d (diff)
wcte12xp: Poll the VPM and reset it if necessary.
When the transmit descriptor runs out completely, there (appears to be) a chance for a random command to be sent that results in the VPMADT032 to no longer respond, typically resulting in one way audio. This change introduces a poll of the VPM. If it fails the poll, it will be bypassed temporarily while the driver resets and reprograms it. Also, the VPM is initially programmed in the spanconfig callback instead of at driver load. This moves the potential for underruns until later in the boot process. DAHDI-573. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@8468 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/voicebus/voicebus.c')
-rw-r--r--drivers/dahdi/voicebus/voicebus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dahdi/voicebus/voicebus.c b/drivers/dahdi/voicebus/voicebus.c
index 9ae2155..a3fb42e 100644
--- a/drivers/dahdi/voicebus/voicebus.c
+++ b/drivers/dahdi/voicebus/voicebus.c
@@ -1757,7 +1757,7 @@ int vpmadtreg_loadfirmware(struct voicebus *vb)
spin_unlock(&loader_list_lock);
dev_info(&vb->pdev->dev, "Failed to find a registered "
"loader after loading module.\n");
- ret = -1;
+ ret = -ENODEV;
}
return ret;
}