[zaptel-commits] sruffell: branch sruffell/voicebus r3809 - in /team/sruffell/voicebus: ./ wct...

SVN commits to the Zaptel project zaptel-commits at lists.digium.com
Wed Feb 6 12:13:59 CST 2008


Author: sruffell
Date: Wed Feb  6 12:13:59 2008
New Revision: 3809

URL: http://svn.digium.com/view/zaptel?view=rev&rev=3809
Log:
Actually...we really only need to clear these buffers out on the transmit
path.  The client driver should really be responsible for ensuring that
buffers submitted for transmit are valid.


Modified:
    team/sruffell/voicebus/voicebus.c
    team/sruffell/voicebus/wctdm24xxp/base.c
    team/sruffell/voicebus/wcte12xp/base.c

Modified: team/sruffell/voicebus/voicebus.c
URL: http://svn.digium.com/view/zaptel/team/sruffell/voicebus/voicebus.c?view=diff&rev=3809&r1=3808&r2=3809
==============================================================================
--- team/sruffell/voicebus/voicebus.c (original)
+++ team/sruffell/voicebus/voicebus.c Wed Feb  6 12:13:59 2008
@@ -527,9 +527,11 @@
 {
 	void *vbb;
 	vbb = kmem_cache_alloc(vb->buffer_cache, VOICEBUS_ALLOC_FLAGS);
+	/*
 	if (vbb) {
 		memset(vbb, 0, vb->framesize);
 	}
+	*/
 	return vbb;
 }
 

Modified: team/sruffell/voicebus/wctdm24xxp/base.c
URL: http://svn.digium.com/view/zaptel/team/sruffell/voicebus/wctdm24xxp/base.c?view=diff&rev=3809&r1=3808&r2=3809
==============================================================================
--- team/sruffell/voicebus/wctdm24xxp/base.c (original)
+++ team/sruffell/voicebus/wctdm24xxp/base.c Wed Feb  6 12:13:59 2008
@@ -1555,6 +1555,7 @@
 void handle_transmit(void* vbb, void* context)
 {
 	struct wctdm *wc = context;
+	memset(vbb, 0, SFRAME_SIZE);
 	wc->txints++;
 	wctdm_transmitprep(wc, vbb);
 	wctdm_isr_misc(wc);

Modified: team/sruffell/voicebus/wcte12xp/base.c
URL: http://svn.digium.com/view/zaptel/team/sruffell/voicebus/wcte12xp/base.c?view=diff&rev=3809&r1=3808&r2=3809
==============================================================================
--- team/sruffell/voicebus/wcte12xp/base.c (original)
+++ team/sruffell/voicebus/wcte12xp/base.c Wed Feb  6 12:13:59 2008
@@ -1557,6 +1557,7 @@
 	 * the reglock will never be acquired from interrupt context, so it's
 	 * safe to grab it without locking interrupt.
 	 */
+	memset(vbb, 0, SFRAME_SIZE);
 	spin_lock(&wc->reglock);
 	wc->txints++;
 	t1_transmitprep(wc, vbb);




More information about the zaptel-commits mailing list