[svn-commits] tzafrir: linux/trunk r10158 - /linux/trunk/drivers/dahdi/xpp/card_fxs.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Sun Aug 28 04:46:15 CDT 2011
Author: tzafrir
Date: Sun Aug 28 04:46:12 2011
New Revision: 10158
URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=10158
Log:
xpp: FXS: new 2+6 module has no digital I/O ports
This module is recognized via subtype==4
Signed-off-by: Tzafrir Cohen <tzafrir.cohen at xorcom.com>
Modified:
linux/trunk/drivers/dahdi/xpp/card_fxs.c
Modified: linux/trunk/drivers/dahdi/xpp/card_fxs.c
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/xpp/card_fxs.c?view=diff&rev=10158&r1=10157&r2=10158
==============================================================================
--- linux/trunk/drivers/dahdi/xpp/card_fxs.c (original)
+++ linux/trunk/drivers/dahdi/xpp/card_fxs.c Sun Aug 28 04:46:12 2011
@@ -398,7 +398,7 @@
else
regular_channels = min(8, subunit_ports);
channels = regular_channels;
- if(unit == 0)
+ if(unit == 0 && subtype != 4)
channels += 6; /* 2 DIGITAL OUTPUTS, 4 DIGITAL INPUTS */
xpd = xpd_alloc(xbus, unit, subunit, subtype, subunits, sizeof(struct FXS_priv_data), proto_table, channels);
if(!xpd)
More information about the svn-commits
mailing list