summaryrefslogtreecommitdiff
path: root/kernel/zttranscode.c
diff options
context:
space:
mode:
authorsruffell <sruffell@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2008-10-10 22:37:48 +0000
committersruffell <sruffell@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2008-10-10 22:37:48 +0000
commit1224ef0741b8a5a78f8efd526f7b77f4ea91d523 (patch)
treec0afa34c62602ce5377239505988f775704ac826 /kernel/zttranscode.c
parent7b9246d6d19de05db6567ef74604130ee97c0f47 (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.digium.com/svn/zaptel/branches/1.4@4564 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'kernel/zttranscode.c')
-rw-r--r--kernel/zttranscode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/zttranscode.c b/kernel/zttranscode.c
index cc26492..239189d 100644
--- a/kernel/zttranscode.c
+++ b/kernel/zttranscode.c
@@ -212,7 +212,7 @@ __find_free_channel(struct list_head *list, const struct zt_transcoder_formats *
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;