[svn-commits] sruffell: linux/trunk r5084 - in /linux/trunk/drivers/dahdi: ./ wctc4xxp/

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Oct 10 17:38:44 CDT 2008


Author: sruffell
Date: Fri Oct 10 17:38:44 2008
New Revision: 5084

URL: http://svn.digium.com/view/dahdi?view=rev&rev=5084
Log:
- 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.

Modified:
    linux/trunk/drivers/dahdi/dahdi_transcode.c
    linux/trunk/drivers/dahdi/wctc4xxp/base.c

Modified: linux/trunk/drivers/dahdi/dahdi_transcode.c
URL: http://svn.digium.com/view/dahdi/linux/trunk/drivers/dahdi/dahdi_transcode.c?view=diff&rev=5084&r1=5083&r2=5084
==============================================================================
--- linux/trunk/drivers/dahdi/dahdi_transcode.c (original)
+++ linux/trunk/drivers/dahdi/dahdi_transcode.c Fri Oct 10 17:38:44 2008
@@ -212,7 +212,7 @@
 	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; 

Modified: linux/trunk/drivers/dahdi/wctc4xxp/base.c
URL: http://svn.digium.com/view/dahdi/linux/trunk/drivers/dahdi/wctc4xxp/base.c?view=diff&rev=5084&r1=5083&r2=5084
==============================================================================
--- linux/trunk/drivers/dahdi/wctc4xxp/base.c (original)
+++ linux/trunk/drivers/dahdi/wctc4xxp/base.c Fri Oct 10 17:38:44 2008
@@ -2846,6 +2846,7 @@
 				/* Move this to the local list because we're
 				 * going to resend it once we free the locks */
 				list_move_tail(&cmd->node, &cmds_to_retry);
+				cmd->flags &= ~(TX_COMPLETE);
 			} else {
 				/* The command is still sitting on the tx
 				 * descriptor ring.  We don't want to move it




More information about the svn-commits mailing list