summaryrefslogtreecommitdiff
path: root/wctdm24xxp
diff options
context:
space:
mode:
authorkpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-12-04 15:05:50 +0000
committerkpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-12-04 15:05:50 +0000
commit35be5105b6a4cbf3a530764c935d12c44f9d3cf8 (patch)
tree772c9180223c6f19839630ace9ca9a16c3f796de /wctdm24xxp
parent98a0f3bde5689097fdd98c86b4934155c1857c5c (diff)
when reporting devicetype for all cards supported by the wctdm24xxp, including the presence of a VPM in the result
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3285 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'wctdm24xxp')
-rw-r--r--wctdm24xxp/base.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/wctdm24xxp/base.c b/wctdm24xxp/base.c
index b46e0af..d2c4368 100644
--- a/wctdm24xxp/base.c
+++ b/wctdm24xxp/base.c
@@ -3051,6 +3051,10 @@ static int wctdm_initialize(struct wctdm *wc)
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;