summaryrefslogtreecommitdiff
path: root/drivers/dahdi/dahdi_transcode.c
diff options
context:
space:
mode:
authorShaun Ruffell <sruffell@digium.com>2008-10-10 22:38:44 +0000
committerShaun Ruffell <sruffell@digium.com>2008-10-10 22:38:44 +0000
commitbec5a7d023adf009bcb996f068e2cf743dfabfa6 (patch)
tree44da8a97921a40c308184bded5f1f7a6eeef1094 /drivers/dahdi/dahdi_transcode.c
parent04b68a34b071c18348335d379d9a6b5ee15c174f (diff)
- Ensure that the source format is considered when selecting a transcoder.
- When a command is to be retried, turn off the TX_COMPLETE flag before resubmitting it to the hardware. This should elimate some of the warnings printed to the kernel log in the wctc4xxp_transmit_cmd function. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5084 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/dahdi_transcode.c')
-rw-r--r--drivers/dahdi/dahdi_transcode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dahdi/dahdi_transcode.c b/drivers/dahdi/dahdi_transcode.c
index 92120a3..9ce07c9 100644
--- a/drivers/dahdi/dahdi_transcode.c
+++ b/drivers/dahdi/dahdi_transcode.c
@@ -212,7 +212,7 @@ __find_free_channel(struct list_head *list, const struct dahdi_transcoder_format
unsigned int match = 0;
list_for_each_entry(tc, list, node) {
- if ((tc->dstfmts & fmts->dstfmt)) {
+ if ((tc->dstfmts & fmts->dstfmt) && (tc->srcfmts & fmts->srcfmt)) {
/* We found a transcoder that can handle our formats.
* Now look for an available channel. */
match = 1;