summaryrefslogtreecommitdiff
path: root/wcusb.c
diff options
context:
space:
mode:
Diffstat (limited to 'wcusb.c')
-rw-r--r--wcusb.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/wcusb.c b/wcusb.c
index 9e5008e..57619c5 100644
--- a/wcusb.c
+++ b/wcusb.c
@@ -1250,6 +1250,8 @@ static int wc_set_zaptel(struct wc_usb_pvt *p)
sprintf(p->span.name, "WCUSB/%d", x);
sprintf(p->span.desc,"%s %d", p->span.name, x);
sprintf(p->chan.name, "WCUSB/%d/%d", x, 0);
+ p->span.manufacturer = "Digium";
+ p->span.devicetype = p->variety;
p->chan.sigcap = ZT_SIG_FXOKS | ZT_SIG_FXOLS | ZT_SIG_FXOGS; /* We're capabable of both FXOKS and FXOLS */
p->chan.chanpos = 1;
@@ -1261,11 +1263,11 @@ static int wc_set_zaptel(struct wc_usb_pvt *p)
p->span.close = wc_usb_close;
ifaces[x] = p;
- p->pos = x;
- p->span.flags = ZT_FLAG_RBS;
- init_waitqueue_head(&p->span.maintq);
- p->span.pvt = p;
- p->chan.pvt = p;
+ p->pos = x;
+ p->span.flags = ZT_FLAG_RBS;
+ init_waitqueue_head(&p->span.maintq);
+ p->span.pvt = p;
+ p->chan.pvt = p;
/* Set the stream to just pass the data from the device uninhibited */
p->sample = STREAM_NORMAL;
@@ -1357,6 +1359,7 @@ static void *wc_usb_probe(struct usb_device *dev, unsigned int ifnum, const stru
p->dead = 0;
/* Clear alarms */
p->span.alarms = 0;
+ p->variety = d->name;
zt_alarm_notify(&p->span);
#ifdef LINUX26
usb_set_intfdata(intf, p);
@@ -1485,4 +1488,3 @@ MODULE_DEVICE_TABLE(usb, wc_dev_ids);
module_init(wc_init);
module_exit(wc_cleanup);
-