[dahdi-commits] sruffell: branch linux/sruffell/staging r6498 - /linux/team/sruffell/staging/...
SVN commits to the DAHDI project
dahdi-commits at lists.digium.com
Mon Apr 27 10:59:56 CDT 2009
Author: sruffell
Date: Mon Apr 27 10:59:53 2009
New Revision: 6498
URL: http://svn.digium.com/svn-view/dahdi?view=rev&rev=6498
Log:
voicebus: Removing unused code blocks and space in flag definitions.
Modified:
linux/team/sruffell/staging/drivers/dahdi/voicebus.c
Modified: linux/team/sruffell/staging/drivers/dahdi/voicebus.c
URL: http://svn.digium.com/svn-view/dahdi/linux/team/sruffell/staging/drivers/dahdi/voicebus.c?view=diff&rev=6498&r1=6497&r2=6498
==============================================================================
--- linux/team/sruffell/staging/drivers/dahdi/voicebus.c (original)
+++ linux/team/sruffell/staging/drivers/dahdi/voicebus.c Mon Apr 27 10:59:53 2009
@@ -222,7 +222,7 @@
#define RX_UNDERRUN 2
#define IN_DEFERRED_PROCESSING 3
#define STOP 4
-#define STOPPED 8
+#define STOPPED 5
#if VOICEBUS_DEFERRED == WORKQUEUE
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 18)
@@ -504,24 +504,6 @@
__vb_sdi_clk(vb);
}
}
-
-#if 0 /* this function might be useful in the future for debugging. */
-static unsigned int
-__vb_sdi_recvbits(struct voicebus *vb, int count)
-{
- unsigned int bits = 0;
- vb->sdi |= CSR9_MMC;
- __vb_setctl(vb, 0x0048, vb->sdi);
- while (count--) {
- bits <<= 1;
- if (__vb_sdi_clk(vb))
- bits |= 1;
- else
- bits &= ~1;
- }
- return bits;
-}
-#endif
static void
vb_setsdi(struct voicebus *vb, int addr, u16 val)
@@ -1132,26 +1114,10 @@
#ifdef DBG
static int count;
#endif
-#if 0
- int stopping = test_bit(STOP, &vb->flags);
-#endif
int underrun = test_bit(TX_UNDERRUN, &vb->flags);
start_vb_deferred(vb);
-#if 0
- if (unlikely(stopping)) {
-
- while ((vbb = vb_get_completed_txb(vb)))
- voicebus_free(vb, vbb);
-
- while ((vbb = vb_get_completed_rxb(vb)))
- voicebus_free(vb, vbb);
-
- stop_vb_deferred(vb);
- return;
- }
-#endif
if (unlikely(underrun)) {
/* When we've underrun our FIFO, for some reason we're not
* able to keep enough transmit descriptors pending. This can
More information about the dahdi-commits
mailing list