diff options
author | markster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2005-05-06 06:14:18 +0000 |
---|---|---|
committer | markster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2005-05-06 06:14:18 +0000 |
commit | e2e9e5d030b4a7b451056d73a1d9ef4db33ec952 (patch) | |
tree | 662940270b624476417dd9a282a32520b87f5b0b | |
parent | b6c9e790a3a83a17dc3dea3f57073e10875359c2 (diff) |
Fix behavior on 1st gen T4 cards (oops)
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@637 5390a7c7-147a-4af0-8ec9-7488f05a26cb
-rwxr-xr-x | wct4xxp.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1184,7 +1184,10 @@ static int t4_startup(struct zt_span *span) 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); |