Hi..
> I've got a big Problem... I want to write an autodetection-routine for
> Soundblaster-Cards. Getting the right Port is no Problem. But I don't
> know how to find out the right DMA-Channel.
It's linked to the IRQ detection.
You simply try all DMA channels and IRQ's until you find the one that works.
some psuedo code:
for dma=0 to 7 do
for irq = 0 to 15 do
play a 1 byte sample using DMA so that an irq is triggered.
did our ISR go off?
no : try next values
yes : OK we have the settings!!
end.
you could also read the BLASTER Environment variable, or if you detect a SB
16, read the software configuration registers.
Get the Creative SB developers pack from their website if you have internet
access.
Craig
--- FMail/386 1.0g
---------------
* Origin: Communications Barrier BBS (03) 9585 1112, 24hrs (3:632/533)
|