[svn-commits] sruffell: linux/trunk r6799 - /linux/trunk/drivers/dahdi/wcb4xxp/base.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Tue Jun 30 10:45:09 CDT 2009
Author: sruffell
Date: Tue Jun 30 10:45:06 2009
New Revision: 6799
URL: http://svn.asterisk.org/svn-view/dahdi?view=rev&rev=6799
Log:
wcb4xxp: Start the first span with default settings on load.
One of the spans of the B410P is now started at driver load time in order to
allow it to provide early timing to asterisk, before the card has been
properly configured.
Modified:
linux/trunk/drivers/dahdi/wcb4xxp/base.c
Modified: linux/trunk/drivers/dahdi/wcb4xxp/base.c
URL: http://svn.asterisk.org/svn-view/dahdi/linux/trunk/drivers/dahdi/wcb4xxp/base.c?view=diff&rev=6799&r1=6798&r2=6799
==============================================================================
--- linux/trunk/drivers/dahdi/wcb4xxp/base.c (original)
+++ linux/trunk/drivers/dahdi/wcb4xxp/base.c Tue Jun 30 10:45:06 2009
@@ -2,7 +2,7 @@
* WCB410P Quad-BRI PCI Driver
* Written by Andrew Kohlsmith <akohlsmith at mixdown.ca>
*
- * Copyright (C) 2008 Digium, Inc.
+ * Copyright (C) 2009 Digium, Inc.
* All rights reserved.
*
*/
@@ -2481,6 +2481,11 @@
}
#endif /* CREATE_WCB4XXP_PROCFS_ENTRY */
+static int b4xxp_startdefaultspan(struct b4xxp *b4)
+{
+ struct dahdi_lineconfig lc = {0,};
+ return b4xxp_spanconfig(&b4->spans[0].span, &lc);
+}
static int __devinit b4xx_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
{
@@ -2592,6 +2597,7 @@
goto err_out_unreg_spans;
}
}
+
#if 0
@@ -2616,6 +2622,10 @@
dev_info(b4->dev, "Did not do the highestorder stuff\n");
#endif
+ ret = b4xxp_startdefaultspan(b4);
+ if (ret)
+ goto err_out_unreg_spans;
+
ret = 0;
return ret;
More information about the svn-commits
mailing list