[svn-commits] sruffell: linux/trunk r7601 - /linux/trunk/drivers/dahdi/wctdm24xxp/base.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Nov 19 10:11:23 CST 2009


Author: sruffell
Date: Thu Nov 19 10:11:20 2009
New Revision: 7601

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=7601
Log:
wctdm24xxp: Honor the alawoverride parameter when using the VPMADT032.

Modified:
    linux/trunk/drivers/dahdi/wctdm24xxp/base.c

Modified: linux/trunk/drivers/dahdi/wctdm24xxp/base.c
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/wctdm24xxp/base.c?view=diff&rev=7601&r1=7600&r2=7601
==============================================================================
--- linux/trunk/drivers/dahdi/wctdm24xxp/base.c (original)
+++ linux/trunk/drivers/dahdi/wctdm24xxp/base.c Thu Nov 19 10:11:20 2009
@@ -416,6 +416,9 @@
 		printk(KERN_NOTICE "Error pinging DSP (%d)\n", res);
 		return -1;
 	}
+
+	vpm->companding = (wc->span.deflaw == DAHDI_LAW_MULAW) ?
+				ADT_COMP_ULAW : ADT_COMP_ALAW;
 
 	for (i = 0; i < vpm->options.channels; ++i) {
 		vpm->curecstate[i].tap_length = 0;




More information about the svn-commits mailing list