Subject: Re: sound driver
To: None <current-users@NetBSD.ORG>
From: Ernst J. du Toit <firstname.lastname@example.org>
Date: 03/27/1995 15:45:37
> > It still fails. It also plays a bit fast (HAL the computer sounds
> > like one of the Chipmunks). It only gives the out of paper message
> > the first time, though.
> > That's what I'd expect if the sound card is configured for IRQ 7, and
> > you have the interrupt enabled on the parallel port. (Actually, I'd
> > expect `offline', but different parallel ports have different states
> > when there's nothing connected.)
> I am seeing this same behavior with my SBPRO. I *know* that the SB is
> being configured for irq10, (boot message) and the parallel port is
> at irq7. I have not said much about this as I am way too busy to look
> into the problem. My behavior is slightly different. cat'ing *.au >
> /dev/audio hangs. Sending something to the printer on /dev/lpa0 will
> cause it to flush bits of high speed sound to the audio.
> crw-rw-rw- 1 root wheel 42, 0 Mar 8 15:17 /dev/sound
> crw-rw-rw- 1 root wheel 42, 16 Mar 7 06:25 /dev/mixer
> crw-rw-rw- 1 root wheel 42, 128 Mar 8 15:27 /dev/audio
I've got a clone of the OLD SB2.1 in my box and don't have any speed
problems - its on IRQ7, but my printer is polled.
What I DO notice is that cat *.au > /dev/audio works UNTIL I
cat /dev/audio > somename.au it just hangs. When I break and try to
cat *.au > /dev/audio it just produces a short hiss.
I compiled the 'gross audio tools' someone posted (thanks for that it
works!) and I can get record AND playback going - I can reset the card by
playing a recorded sample with the audio tools and then do a cat *.au >
/dev/audio and it works again.
This leads me to conclude that cat /dev/audio > file.au puts the card in
input mode and then leaves it there when the process is killed - very
I looked at the code and there is some mention of doing that - anyone
smart enough to bang the code about the head to make it initialize with
default values that 'all' cards will understand to make cat records/playbacks
work and then if you want fancy/advanced features use a binary?
just my 0.02
Ernst J. du Toit (TED5) Internet: email@example.com
School of Electrical Engineering BELTEL : 175250 / Amateur Radio: ZR1ABB
Cape Technikon Voice: +27 21 460 3911 / Fax: +27 21 45 4161
South Africa /* Hackers do it with bytes and nybbles ! */