[svn-commits] sruffell: branch linux/sruffell/improved_ecreference r6959 - /linux/team/sruf...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Aug 11 15:25:08 CDT 2009


Author: sruffell
Date: Tue Aug 11 15:25:04 2009
New Revision: 6959

URL: http://svn.asterisk.org/svn-view/dahdi?view=rev&rev=6959
Log:
wcte12xp-wip: Need to have the kfifo setup before we initialize voicebus.

Modified:
    linux/team/sruffell/improved_ecreference/drivers/dahdi/wcte12xp/base.c

Modified: linux/team/sruffell/improved_ecreference/drivers/dahdi/wcte12xp/base.c
URL: http://svn.asterisk.org/svn-view/dahdi/linux/team/sruffell/improved_ecreference/drivers/dahdi/wcte12xp/base.c?view=diff&rev=6959&r1=6958&r2=6959
==============================================================================
--- linux/team/sruffell/improved_ecreference/drivers/dahdi/wcte12xp/base.c (original)
+++ linux/team/sruffell/improved_ecreference/drivers/dahdi/wcte12xp/base.c Tue Aug 11 15:25:04 2009
@@ -1266,12 +1266,6 @@
 		return -1;
 	}
 
-	for (x = 0; x < ARRAY_SIZE(wc->ec_reference); ++x) {
-		wc->ec_reference[x] = kfifo_alloc(DAHDI_CHUNKSIZE *
-						  VOICEBUS_MAX_LATENCY,
-						  GFP_KERNEL, NULL);
-	}
-
 	set_bit(INITIALIZED, &wc->bit_flags);
 
 	return 0;
@@ -1758,6 +1752,12 @@
 	INIT_WORK(&wc->timer_work, timer_work_func);
 #	endif
 
+	for (x = 0; x < ARRAY_SIZE(wc->ec_reference); ++x) {
+		wc->ec_reference[x] = kfifo_alloc(DAHDI_CHUNKSIZE *
+						  VOICEBUS_MAX_LATENCY,
+						  GFP_KERNEL, &wc->reglock);
+	}
+
 	snprintf(wc->name, sizeof(wc->name)-1, "wcte12xp%d", index);
 	if ((res = voicebus_init(pdev, SFRAME_SIZE, wc->name,
 				 t1_handle_receive, t1_handle_transmit, wc,




More information about the svn-commits mailing list