Idefisk
Tools
Tutorials
Reviews
VoIP Providers
Archives
AsteriskGuru Archives
Mailing List Archives
FAQ
Search
Memberlist
Usergroups
Register
Profile
Log in to check your private messages
Log in
[Asterisk-cvs] zaptel tor2.c,1.2,1.3
AsteriskGuru Archives Forum Index
->
Asterisk-CVS
View previous topic
::
View next topic
Author
Message
markster at lists.digium.
Guest
Posted: Tue Sep 23, 2003 4:03 pm
Post subject: [Asterisk-cvs] zaptel tor2.c,1.2,1.3
Update of /usr/cvsroot/zaptel
In directory mongoose.digium.com:/tmp/cvs-serv17800
Modified Files:
tor2.c
Log Message:
Apply tcr2 fix to tor2, too
Index: tor2.c
===================================================================
RCS file: /usr/cvsroot/zaptel/tor2.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- tor2.c 18 Jul 2003 18:54:03 -0000 1.2
+++ tor2.c 23 Sep 2003 16:04:45 -0000 1.3
@@ -792,7 +792,7 @@
p->tor->syncsrc = -1;
if (p->tor->cardtype == TYPE_E1) { /* if this is an E1 card */
- unsigned char tcr1,ccr1;
+ unsigned char tcr1,ccr1,tcr2;
if (!alreadyrunning) {
p->tor->mem8[SYNCREG] = SYNCSELF;
p->tor->mem8[CTLREG] = E1DIV;
@@ -821,6 +821,7 @@
ccr1 = 0;
crcing = "";
tcr1 = 9; /* base TCR1 value: TSis mode */
+ tcr2 = 0;
if (span->lineconfig & ZT_CONFIG_CCS) {
ccr1 |= 8; /* CCR1: Rx Sig mode: CCS */
coding = "CCS";
@@ -834,9 +835,11 @@
} else framing = "AMI";
if (span->lineconfig & ZT_CONFIG_CRC4) {
ccr1 |= 0x11; /* CCR1: TX and TX CRC4 */
+ tcr2 |= 0x02; /* TCR2: CRC4 bit auto */
crcing = "/CRC4";
}
t1out(p->tor,tspan,0x12,tcr1);
+ t1out(p->tor,tspan,0x13,tcr2);
t1out(p->tor,tspan,0x14,ccr1);
t1out(p->tor,tspan, 0x18, 0x20); /* 120 Ohm, normal */
Back to top
Display posts from previous:
All Posts
1 Day
7 Days
2 Weeks
1 Month
3 Months
6 Months
1 Year
Oldest First
Newest First
AsteriskGuru Archives Forum Index
->
Asterisk-CVS
All times are GMT
Page
1
of
1
Jump to:
Select a forum
Asterisk Mailing Lists
----------------
Asterisk-Users
Asterisk-Dev
Asterisk-CVS
Asterisk-Biz
Asterisk-Doc
Asterisk-BSD
Asterisk-Announce
Asterisk Call Centers
Asterisk-Video
Asterisk-Speech-Rec
Bristuff-Users
You
cannot
post new topics in this forum
You
cannot
reply to topics in this forum
You
cannot
edit your posts in this forum
You
cannot
delete your posts in this forum
You
cannot
vote in polls in this forum
Powered by
phpBB
© 2001, 2005 phpBB Group