diff options
author | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2011-08-28 09:42:50 +0000 |
---|---|---|
committer | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2011-08-28 09:42:50 +0000 |
commit | b081dc7ba1207a735da984aea5df0a9c10c7f112 (patch) | |
tree | 41c36e7f659058c37e210e927d467bd032ba7c49 | |
parent | 89aa9d8f8416883123b6a5a0e2619513eee9d879 (diff) |
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@xorcom.com>
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/branches/2.4@10156 a0bf4364-ded3-4de4-8d8a-66a801d63aff
-rw-r--r-- | drivers/dahdi/xpp/card_fxs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dahdi/xpp/card_fxs.c b/drivers/dahdi/xpp/card_fxs.c index 050833e..b803399 100644 --- a/drivers/dahdi/xpp/card_fxs.c +++ b/drivers/dahdi/xpp/card_fxs.c @@ -399,7 +399,7 @@ static xpd_t *FXS_card_new(xbus_t *xbus, int unit, int subunit, const xproto_tab 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) |