wcfxo, wctdm: set spantype
* wctdm: set to SPANTYPE_ANALOG_MIXED. Maybe it could be improved if all slots have modules of the same type. * wcfxo: type FXO. Signed-off-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com>
This commit is contained in:
parent
ffdfdfb66b
commit
18de17084d
@ -685,6 +685,7 @@ static int wcfxo_initialize(struct wcfxo *wc)
|
||||
|
||||
wc->chan->pvt = wc;
|
||||
wc->span.ops = &wcfxo_span_ops;
|
||||
wc->span.spantype = SPANTYPE_ANALOG_FXO;
|
||||
list_add_tail(&wc->span.device_node, &wc->ddev->spans);
|
||||
if (dahdi_register_device(wc->ddev, &wc->dev->dev)) {
|
||||
printk(KERN_NOTICE "Unable to register span with DAHDI\n");
|
||||
|
@ -2411,6 +2411,7 @@ static int wctdm_initialize(struct wctdm *wc)
|
||||
wc->span.channels = NUM_CARDS;
|
||||
wc->span.flags = DAHDI_FLAG_RBS;
|
||||
wc->span.ops = &wctdm_span_ops;
|
||||
wc->span.spantype = SPANTYPE_ANALOG_MIXED;
|
||||
|
||||
list_add_tail(&wc->span.device_node, &wc->ddev->spans);
|
||||
if (dahdi_register_device(wc->ddev, &wc->dev->dev)) {
|
||||
|
Loading…
Reference in New Issue
Block a user