[Prev][Next][Index][Thread]

Sound emulation (fwd)




Hello everybody.

The following is a message I sent to the DOSEMU people.
I figured I could get some ideas from this list as well.

I didn't get any reply for it yet (is linux-msdos@vger.rutgers.edu
a majordomo? Did they even get my message?) 

I had a slight mail glitch a few minutes ago while polling POP mail which 
caused the loss of the mail in retrieval, so I'd really appreciate it
if any of you who is on the linux-msdos list forward any reply that 
was written (today) to me. 

-- David

PS: meanwhile, I *did* implement the SB16 8bit generic-DAC command
    without fixing the problem in hand. Oh well. 

------------------------------------------------------------------------------
crisk@netvision.net.il                                         HAIFA, ISRAEL
------------------------------------------------------------------------------
The biggest lies: 
 24. I *love* your new <hat/haircut/dress/suit...>!



---------- Forwarded message ----------
Date: Thu, 13 Feb 1997 15:31:47 +0200 (IST)
From: David Brauman <crisk@netvision.net.il>
To: linux-msdos@vger.rutgers.edu
Subject: Sound emulation


Hello.

I've been trying to get the SB emulation of DOSEmu to work - it was quite
broken when I started to work on it. I've changed some things and now
the soundcard address and IRQ are being detected like they should.

I have an SB16, and I used Creative's DIAGNOSE software to see what 
it was trying to do with the card and what was supposed to be returned.
(They use some undocumented IO in their code, which is also in their sound
 driver, it seems.)

Currently, I'm trying to get the DMA to work like it should. Without
starting to implement some missing features (which seem to be needed),
I started to play with the simplest method of the thing. I've got this
DMA step-by-step programming examples from x2ftp - the first file 
detects a card, inits it and plays a sample using DMA in the most
simplistic way. Amazingly, that *almost* worked. The only problem is
that after playing the first block or so, I started to get these:

SB: In DMA Handler
SB: Asserting DACK
DMA: processing controller 1, channel 1
DMA: Single Mode Read - length 12597
DMA: Error in READ on Channel 1 of controller 0 (Interrupted system call)

Those naturally messed up the sound. 
Any ideas? 
I think fixing this now is a smart move, before I start trying to  
implement all the DMA auto-inits and the other IO functions the 
current sound emulation ignores.

PS -  that particular error (Interrupted system call) has happened to me
      many times before. If I play some samples using Linux, suspend it
      and try to forground it back again, I get this exact error from the
      DSP. Sounds like the Linux kernel sound driver needs a fix?

-- David

------------------------------------------------------------------------------
crisk@netvision.net.il                                         HAIFA, ISRAEL
------------------------------------------------------------------------------
Sexually tilted quote from THE EMPIRE STRIKES BACK:
  8. There's an awful lot of moisture in here.