[zaptel-commits] kpfleming: branch mogorman/zaptel-1.2-transcoder r2013 - /team/mogorman/zapte...

zaptel-commits at lists.digium.com zaptel-commits at lists.digium.com
Mon Jan 29 15:34:31 MST 2007


Author: kpfleming
Date: Mon Jan 29 16:34:30 2007
New Revision: 2013

URL: http://svn.digium.com/view/zaptel?view=rev&rev=2013
Log:
remove various comments and unneeded debug code

Modified:
    team/mogorman/zaptel-1.2-transcoder/wctc4xxp/base.c

Modified: team/mogorman/zaptel-1.2-transcoder/wctc4xxp/base.c
URL: http://svn.digium.com/view/zaptel/team/mogorman/zaptel-1.2-transcoder/wctc4xxp/base.c?view=diff&rev=2013&r1=2012&r2=2013
==============================================================================
--- team/mogorman/zaptel-1.2-transcoder/wctc4xxp/base.c (original)
+++ team/mogorman/zaptel-1.2-transcoder/wctc4xxp/base.c Mon Jan 29 16:34:30 2007
@@ -456,8 +456,6 @@
 	volatile u8 *writechunk = (volatile u8 *) wc->writechunk + (wc->tdbl * SFRAME_SIZE);
 	u32 xmt_length;
 
-	debug_printk(1, "transmitting %d bytes from %p\n", length, data);
-
 	/* Yes... this is a busy loop, that is not interruptible. However, it is
 	   highly unlikely (and testing proves) that the wait for a descriptor
 	   to become available will ever be long enough for this to be an issue.
@@ -476,8 +474,6 @@
 	setctl(wc, 0x0008, 0x00000000);			/* Transmit Poll Demand */
 	
 	wc->tdbl = (wc->tdbl + 1) % ERING_SIZE;
-
-	debug_printk(1, "transmit complete\n");
 }
 
 static inline int __transmit_demand(struct wcdte *wc)
@@ -1315,8 +1311,7 @@
 	send_cmd(wc, CMD_MSG_TDM_OPT(wc->seq_num++), CMD_MSG_TDM_OPT_LEN, 0x0435);
 #endif
 
-	/* TODO: this may be an invalid assumption... HZ is not always going to be 1000	*/
-	wc->timeout = HZ/100 + 1; 	/* 10ms */
+	wc->timeout = HZ/100 + 1;
 
 	return 0;
 }
@@ -1357,7 +1352,7 @@
 	wc->variety = d->name;
 	
 	wc->seq_num = 6;
-	wc->timeout = 1 * HZ;		/* 1 sec */
+	wc->timeout = HZ;
 	
 	/* Keep track of whether we need to free the region */
 	if (request_region(wc->iobase, 0xff, "wctc4xxp")) 



More information about the zaptel-commits mailing list