[asterisk-bugs] [DAHDI-linux 0018184]: [patch] FXS Module detection fails

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Apr 4 07:09:41 CDT 2011


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18184 
====================================================================== 
Reported By:                bsexton
Assigned To:                sruffell
====================================================================== 
Project:                    DAHDI-linux
Issue ID:                   18184
Category:                   wctdm24xxp
Reproducibility:            always
Severity:                   block
Priority:                   normal
Status:                     assigned
JIRA:                        
Reviewboard Link:            
====================================================================== 
Date Submitted:             2010-10-22 01:36 CDT
Last Modified:              2011-04-04 07:09 CDT
====================================================================== 
Summary:                    [patch] FXS Module detection fails
Description: 
The portion of the wctdm24xxp driver that does a check of reg1 to ensure
that it has a value of 0x88 causes the driver to fail to load for my fxs
modules. The card and modules that I have were purchased on Ebay. The cards
I have return a value of 0x08 during the module detection phase causing the
driver to not recognize my FXS modules. The cards work find with all
versions of DAHDI/ZAP that were released prior to the inclusion of this
code in the driver. Patching the driver to allow either 0x88 or 0x08 allows
me to use DAHDI version 2.4.0 with no issues.
====================================================================== 

---------------------------------------------------------------------- 
 (0133333) bsexton (reporter) - 2011-04-04 07:09
 https://issues.asterisk.org/view.php?id=18184#c133333 
---------------------------------------------------------------------- 
Here is the output from the wctdm24xxp module with debug set to 1.

dahdi: Telephony Interface Registered on major 196
dahdi: Version: 2.4.1.1
PCI: Enabling device 0000:03:00.0 (0000 -> 0003)
ACPI: PCI Interrupt 0000:03:00.0[A] -> GSI 20 (level, low) -> IRQ 233
wctdm24xxp 0000:03:00.0: VoiceDAA System: 04
wctdm24xxp 0000:03:00.0: voicedaa: card 1 new timeslot: 0
wctdm24xxp 0000:03:00.0: ISO-Cap is now up, line side: 03 rev 06
wctdm24xxp 0000:03:00.0: setting FXO tx gain for card=0 to 0
wctdm24xxp 0000:03:00.0: setting FXO rx gain for card=0 to 0
wctdm24xxp 0000:03:00.0: DEBUG fxotxgain:0.0 fxorxgain:0.0
wctdm24xxp 0000:03:00.0: Port 1: Installed -- AUTO FXO (FCC mode)
wctdm24xxp 0000:03:00.0: Trying port 2 with alternate chip select
wctdm24xxp 0000:03:00.0: ProSLIC on module 1, product 0, version 5
wctdm24xxp 0000:03:00.0: ProSLIC on module 1 seems sane.
wctdm24xxp 0000:03:00.0: ProSLIC on module 1 powered up to -75 volts (c9)
in 16 ms
wctdm24xxp 0000:03:00.0: Loop current set to 20mA!
wctdm24xxp 0000:03:00.0: Post-leakage voltage: 32 volts
wctdm24xxp 0000:03:00.0: ProSLIC on module 1 powered up to -75 volts (ca)
in 12 ms
wctdm24xxp 0000:03:00.0: Loop current set to 20mA!
wctdm24xxp 0000:03:00.0: Calibration Vector Regs 98 - 107: 
wctdm24xxp 0000:03:00.0: 98: 14
wctdm24xxp 0000:03:00.0: 99: 10
wctdm24xxp 0000:03:00.0: 100: 0e
wctdm24xxp 0000:03:00.0: 101: 10
wctdm24xxp 0000:03:00.0: 102: 07
wctdm24xxp 0000:03:00.0: 103: 46
wctdm24xxp 0000:03:00.0: 104: 05
wctdm24xxp 0000:03:00.0: 105: 2a
wctdm24xxp 0000:03:00.0: 106: 1f
wctdm24xxp 0000:03:00.0: 107: 08
wctdm24xxp 0000:03:00.0: Init Indirect Registers completed successfully.
wctdm24xxp 0000:03:00.0: proslic: card 2 new timeslot: 1
wctdm24xxp 0000:03:00.0: DEBUG: fxstxgain:0.0 fxsrxgain:0.0
wctdm24xxp 0000:03:00.0: Proslic module 1 loop current is 20mA
wctdm24xxp 0000:03:00.0: Port 2: Installed -- AUTO FXS/DPO
wctdm24xxp 0000:03:00.0: ProSLIC on module 2, product 0, version 5
wctdm24xxp 0000:03:00.0: ProSLIC on module 2 seems sane.
wctdm24xxp 0000:03:00.0: ProSLIC on module 2 powered up to -74 volts (c5)
in 16 ms
wctdm24xxp 0000:03:00.0: Loop current set to 20mA!
wctdm24xxp 0000:03:00.0: Post-leakage voltage: 31 volts
wctdm24xxp 0000:03:00.0: ProSLIC on module 2 powered up to -74 volts (c6)
in 12 ms
wctdm24xxp 0000:03:00.0: Loop current set to 20mA!
wctdm24xxp 0000:03:00.0: Calibration Vector Regs 98 - 107: 
wctdm24xxp 0000:03:00.0: 98: 12
wctdm24xxp 0000:03:00.0: 99: 11
wctdm24xxp 0000:03:00.0: 100: 0e
wctdm24xxp 0000:03:00.0: 101: 0f
wctdm24xxp 0000:03:00.0: 102: 05
wctdm24xxp 0000:03:00.0: 103: 6b
wctdm24xxp 0000:03:00.0: 104: 05
wctdm24xxp 0000:03:00.0: 105: 2a
wctdm24xxp 0000:03:00.0: 106: 20
wctdm24xxp 0000:03:00.0: 107: 08
wctdm24xxp 0000:03:00.0: Init Indirect Registers completed successfully.
wctdm24xxp 0000:03:00.0: proslic: card 3 new timeslot: 2
wctdm24xxp 0000:03:00.0: DEBUG: fxstxgain:0.0 fxsrxgain:0.0
wctdm24xxp 0000:03:00.0: Proslic module 2 loop current is 20mA
wctdm24xxp 0000:03:00.0: Port 3: Installed -- AUTO FXS/DPO
wctdm24xxp 0000:03:00.0: ProSLIC on module 3, product 0, version 5
wctdm24xxp 0000:03:00.0: ProSLIC on module 3 seems sane.
wctdm24xxp 0000:03:00.0: ProSLIC on module 3 powered up to -74 volts (c7)
in 16 ms
wctdm24xxp 0000:03:00.0: Loop current set to 20mA!
wctdm24xxp 0000:03:00.0: Post-leakage voltage: 31 volts
wctdm24xxp 0000:03:00.0: ProSLIC on module 3 powered up to -74 volts (c7)
in 16 ms
wctdm24xxp 0000:03:00.0: Loop current set to 20mA!
wctdm24xxp 0000:03:00.0: Calibration Vector Regs 98 - 107: 
wctdm24xxp 0000:03:00.0: 98: 10
wctdm24xxp 0000:03:00.0: 99: 10
wctdm24xxp 0000:03:00.0: 100: 0e
wctdm24xxp 0000:03:00.0: 101: 0e
wctdm24xxp 0000:03:00.0: 102: 04
wctdm24xxp 0000:03:00.0: 103: 77
wctdm24xxp 0000:03:00.0: 104: 05
wctdm24xxp 0000:03:00.0: 105: 2e
wctdm24xxp 0000:03:00.0: 106: 1f
wctdm24xxp 0000:03:00.0: 107: 08
wctdm24xxp 0000:03:00.0: Init Indirect Registers completed successfully.
wctdm24xxp 0000:03:00.0: proslic: card 4 new timeslot: 3
wctdm24xxp 0000:03:00.0: DEBUG: fxstxgain:0.0 fxsrxgain:0.0
wctdm24xxp 0000:03:00.0: Proslic module 3 loop current is 20mA
wctdm24xxp 0000:03:00.0: Port 4: Installed -- AUTO FXS/DPO
wctdm24xxp 0000:03:00.0: fixup_analog: x=0, y=0 modtype=2,
s->chans[0]=ffff81011e65f000
wctdm24xxp 0000:03:00.0: fixup_analog: x=1, y=1 modtype=1,
s->chans[1]=ffff81009100e000
wctdm24xxp 0000:03:00.0: fixup_analog: x=2, y=2 modtype=1,
s->chans[2]=ffff8101279b8000
wctdm24xxp 0000:03:00.0: fixup_analog: x=3, y=3 modtype=1,
s->chans[3]=ffff810048fbb000
wctdm24xxp 0000:03:00.0: voicedaa: card 1 new timeslot: 0
wctdm24xxp 0000:03:00.0: proslic: card 2 new timeslot: 1
wctdm24xxp 0000:03:00.0: proslic: card 3 new timeslot: 2
wctdm24xxp 0000:03:00.0: proslic: card 4 new timeslot: 3
wctdm24xxp 0000:03:00.0: Found a Wildcard TDM: Wildcard TDM410P (0 BRI
spans, 4 analog channels)
dahdi: Registered tone zone 0 (United States / North America)
wctdm24xxp 0000:03:00.0: 4582883456 Polarity reversed (0 -> 1)
wctdm24xxp 0000:03:00.0: BATTERY on 1/1 (+)!
wctdm24xxp 0000:03:00.0: -- Setting echo registers: 
wctdm24xxp 0000:03:00.0: -- Set echo registers successfully 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-04-04 07:09 bsexton        Note Added: 0133333                          
======================================================================




More information about the asterisk-bugs mailing list