From d3c9e434373f6eac20ee4ff827286d5e97960a9a Mon Sep 17 00:00:00 2001 From: Oron Peled Date: Sun, 11 Feb 2018 19:22:03 +0200 Subject: [PATCH] xpp: Support FXS module with 4 ports and no I/O Signed-off-by: Tzafrir Cohen --- drivers/dahdi/xpp/card_fxs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dahdi/xpp/card_fxs.c b/drivers/dahdi/xpp/card_fxs.c index 38f000f..03fcc3a 100644 --- a/drivers/dahdi/xpp/card_fxs.c +++ b/drivers/dahdi/xpp/card_fxs.c @@ -593,7 +593,7 @@ static xpd_t *FXS_card_new(xbus_t *xbus, int unit, int subunit, regular_channels = min(8, subunit_ports); channels = regular_channels; /* Calculate digital inputs/outputs */ - if (unit == 0 && unit_descriptor->subtype != 4) { + if (unit == 0 && unit_descriptor->subtype != 4 && unit_descriptor->numchips != 4) { channels += 6; /* 2 DIGITAL OUTPUTS, 4 DIGITAL INPUTS */ d_inputs = LINES_DIGI_INP; d_outputs = LINES_DIGI_OUT;