[Asterisk-Users] wctdm and two tdm cards

Matt Gibson gibson at experthost.com
Wed Mar 2 16:13:11 MST 2005


Hi Greg,


Cirelle Internet Products wrote:

> In zconfig.h (in the zaptel directory) there is a line at the bottom (at 
> least in my cvs version)
> #define TDM_REVH_MATCHALL   

I tried this, then followed with make clean ; make linux26 ; make 
install && reboot, but it did not function. Then I decided to try your 
next suggestion.


> The other is a bit more involved and can be found here:
> 
> http://lists.digium.com/pipermail/asterisk-users/2004-October/070000.html
> 
> This might be a bit different with the newer software, but the basic 
> idea is the same

I tried this, but I think this message is slightly outdated, as In my 
wctdm.c (not wcfxs.c) I have the following, which leads me to believe 
that it should be already incorporated.

here is an output from the file:

static struct pci_device_id wctdm_pci_tbl[] = {
   { 0xe159, 0x0001, 0xa159, PCI_ANY_ID, 0, 0, (unsigned long) &wctdm },
   { 0xe159, 0x0001, 0xe159, PCI_ANY_ID, 0, 0, (unsigned long) &wctdm },
   { 0xe159, 0x0001, 0xb100, PCI_ANY_ID, 0, 0, (unsigned long) &wctdme },
   { 0xe159, 0x0001, 0xa9fd, PCI_ANY_ID, 0, 0, (unsigned long) &wctdmh },
   { 0xe159, 0x0001, 0xa8fd, PCI_ANY_ID, 0, 0, (unsigned long) &wctdmh },
   { 0xe159, 0x0001, 0xa800, PCI_ANY_ID, 0, 0, (unsigned long) &wctdmh },
   { 0xe159, 0x0001, 0xa801, PCI_ANY_ID, 0, 0, (unsigned long) &wctdmh },
   { 0xe159, 0x0001, 0xa908, PCI_ANY_ID, 0, 0, (unsigned long) &wctdmh },
   { 0xe159, 0x0001, 0xa901, PCI_ANY_ID, 0, 0, (unsigned long) &wctdmh },
#ifdef TDM_REVH_MATCHALL
{ 0xe159, 0x0001, PCI_ANY_ID, PCI_ANY_ID, 0, 0, (unsigned long) &wctdmh },
#endif
   { 0 }
};


and this is the output from lspci -v

0000:02:0c.0 Communication controller: Tiger Jet Network Inc. Tiger3XX 
Modem/ISDN interface
         Subsystem: Unknown device a900:0003
         Flags: bus master, medium devsel, latency 64, IRQ 7
         I/O ports at e400
         Memory at fbffa000 (32-bit, non-prefetchable) [size=4K]
         Capabilities: [40] Power Management version 2

0000:02:0d.0 Communication controller: Tiger Jet Network Inc. Tiger3XX 
Modem/ISDN interface
         Subsystem: Unknown device b100:0003
         Flags: bus master, medium devsel, latency 64, IRQ 4
         I/O ports at e000
         Memory at fbff9000 (32-bit, non-prefetchable) [size=4K]
         Capabilities: [40] Power Management version 2


Notice that the devices b100 and a900 are already present in the wctdm.c.

I did do a bit more digging, and it seems that the a900 line is not set 
in wctdm.mod.c. I'm not really sure if that could be the culprit as I'm 
not a C coder, but I will try and add it there.

It's not that big of a deal, it just doesn't make sense to me that
in order to use the card it must be powered down first. Nobody would
want to power down before listening to music via their soundcard.

Is there some way to send a command to the card on reboot to signify 
that it has lost power and should come back up or something? I'm not
familiar at all with low level driver programming or anything, but
just a thought.

Thanks for all your help,
Matt




More information about the asterisk-users mailing list