Update of /usr/cvsroot/zaptel
In directory mongoose.digium.com:/tmp/cvs-serv28928

Modified Files:
        wct4xxp.c 
Log Message:
Fix behavior on 1st gen T4 cards (oops)


Index: wct4xxp.c
===================================================================
RCS file: /usr/cvsroot/zaptel/wct4xxp.c,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -d -r1.62 -r1.63
--- wct4xxp.c   2 May 2005 20:36:25 -0000       1.62
+++ wct4xxp.c   6 May 2005 06:14:18 -0000       1.63
@@ -1184,7 +1184,10 @@
                wc->spansstarted++;
                        /* enable interrupts */
                /* Start DMA, enabling DMA interrupts on read only */
-               wc->dmactrl = 0xc0000000 | (1 << 29) | wc->vpm;
+               if (wc->spanflags[0] & FLAG_2NDGEN)
+                       wc->dmactrl = 0xc0000000 | (1 << 29) | wc->vpm;
+               else
+                       wc->dmactrl = 0xc0000003 | (1 << 29) | wc->vpm;
                if (noburst)
                        wc->dmactrl |= (1 << 26);
                __t4_pci_out(wc, WC_DMACTRL, wc->dmactrl);

_______________________________________________
Asterisk-Cvs mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-cvs

Reply via email to