[zaptel-commits] kpfleming: branch 1.4 r3285 - /branches/1.4/wctdm24xxp/base.c

SVN commits to the Zaptel project zaptel-commits at lists.digium.com
Tue Dec 4 09:05:50 CST 2007


Author: kpfleming
Date: Tue Dec  4 09:05:50 2007
New Revision: 3285

URL: http://svn.digium.com/view/zaptel?view=rev&rev=3285
Log:
when reporting devicetype for all cards supported by the wctdm24xxp, including the presence of a VPM in the result

Modified:
    branches/1.4/wctdm24xxp/base.c

Modified: branches/1.4/wctdm24xxp/base.c
URL: http://svn.digium.com/view/zaptel/branches/1.4/wctdm24xxp/base.c?view=diff&rev=3285&r1=3284&r2=3285
==============================================================================
--- branches/1.4/wctdm24xxp/base.c (original)
+++ branches/1.4/wctdm24xxp/base.c Tue Dec  4 09:05:50 2007
@@ -3051,6 +3051,10 @@
 		 wc->dev->bus->number, PCI_SLOT(wc->dev->devfn) + 1);
 	wc->span.manufacturer = "Digium";
 	strncpy(wc->span.devicetype, wc->variety, sizeof(wc->span.devicetype) - 1);
+	if (wc->vpm)
+		strncat(wc->span.devicetype, " with VPM100M", sizeof(wc->span.devicetype) - 1);
+	else if (wc->vpm150m)
+		strncat(wc->span.devicetype, " with VPMADT032", sizeof(wc->span.devicetype) - 1);
 	if (alawoverride) {
 		printk("ALAW override parameter detected.  Device will be operating in ALAW\n");
 		wc->span.deflaw = ZT_LAW_ALAW;




More information about the zaptel-commits mailing list