diff options
author | Karsten Keil <keil@b1-systems.de> | 2009-07-08 14:31:42 -0400 |
---|---|---|
committer | Karsten Keil <keil@b1-systems.de> | 2009-07-25 14:16:01 -0400 |
commit | c38fc3bc2ecddd4f5278131603e6964cbed071b2 (patch) | |
tree | 3821cf2fc6226375bbbf8c338316eef33f5b899d /drivers/isdn/hisax/st5481_b.c | |
parent | 6bd4bcd3cd8affc09eaee7efbc037f65f4a71501 (diff) |
ISDN: Add support for none reverse bitstreams to isdnhdc
The original isdnhdlc code was developed for devices which had
reversed bitorder in the byte stream. Adding code to handle normal
bitstreams as well.
Signed-off-by: Karsten Keil <keil@b1-systems.de>
Diffstat (limited to 'drivers/isdn/hisax/st5481_b.c')
-rw-r--r-- | drivers/isdn/hisax/st5481_b.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/isdn/hisax/st5481_b.c b/drivers/isdn/hisax/st5481_b.c index 0074b600a0ef..95b1cdd97958 100644 --- a/drivers/isdn/hisax/st5481_b.c +++ b/drivers/isdn/hisax/st5481_b.c | |||
@@ -218,7 +218,10 @@ static void st5481B_mode(struct st5481_bcs *bcs, int mode) | |||
218 | if (bcs->mode != L1_MODE_NULL) { | 218 | if (bcs->mode != L1_MODE_NULL) { |
219 | // Open the B channel | 219 | // Open the B channel |
220 | if (bcs->mode != L1_MODE_TRANS) { | 220 | if (bcs->mode != L1_MODE_TRANS) { |
221 | isdnhdlc_out_init(&b_out->hdlc_state, 0, bcs->mode == L1_MODE_HDLC_56K); | 221 | u32 features = HDLC_BITREVERSE; |
222 | if (bcs->mode == L1_MODE_HDLC_56K) | ||
223 | features |= HDLC_56KBIT; | ||
224 | isdnhdlc_out_init(&b_out->hdlc_state, features); | ||
222 | } | 225 | } |
223 | st5481_usb_pipe_reset(adapter, (bcs->channel+1)*2, NULL, NULL); | 226 | st5481_usb_pipe_reset(adapter, (bcs->channel+1)*2, NULL, NULL); |
224 | 227 | ||