SB 16 & 1.2.9 kernel, no sound

SB 16 & 1.2.9 kernel, no sound

Post by Scott C. Cottril » Thu, 10 Aug 1995 04:00:00



I have kernel 1.2.9 and a SB 16.  I am using IRQ 9 (2), DMA 3 for 8-bit,
DMA 5 for 16-bit, port 0x220, and MIDI port 0x330.  I have tried DMA 1
for 8-bit, and I've also tried IRQs 5 and 7.  I am compiling the sound
code with only SB 16 support (no OPL3, no MIDI, no other sound cards.)
This is the sound code that came with kernel 1.2.9.  When I cat a wav file
to /dev/dsp, the speed is incorrect, but it plays fine other than that (it
plays the wav file back too slowly.)  When I cat a wave file to /dev/audio,
it plays at the correct speed, but is full of static.  The major and minor
versions of these two devices is correct.

I also have an Intel EtherExpress card using IRQ 10, and port 0x300, and
an Adaptec 154x SCSI card.  No problems with either of these.

Any suggestions?  Does a newer kernel fix sound problems?

-scott


 
 
 

SB 16 & 1.2.9 kernel, no sound

Post by Chris Burro » Thu, 10 Aug 1995 04:00:00



: I have kernel 1.2.9 and a SB 16.  I am using IRQ 9 (2), DMA 3 for 8-bit,
: DMA 5 for 16-bit, port 0x220, and MIDI port 0x330.  I have tried DMA 1
: for 8-bit, and I've also tried IRQs 5 and 7.  I am compiling the sound
: code with only SB 16 support (no OPL3, no MIDI, no other sound cards.)
: This is the sound code that came with kernel 1.2.9.  When I cat a wav file
: to /dev/dsp, the speed is incorrect, but it plays fine other than that (it
: plays the wav file back too slowly.)  When I cat a wave file to /dev/audio,
: it plays at the correct speed, but is full of static.  The major and minor
: versions of these two devices is correct.

--

i'm having an amazing amount of trouble with my SB16 too. i've got a new
one (which apparently is software-configured with very little
dip-switchage). i recently set my box up, and everything works except the
sound. i can't even get the kernel to recognize it at init.. anyone
know if perhaps i'm having these problems because i have a newer
release of the sb16? (got it in one of them creative lab kits -- with my
2x matisushi cdrom which works beautifully) (replying via email would
float my boat) =)

 ___ ___ ___
|___|___|___|_   - chris. (is there anybody out there?) -

|___|   |___|    OR, try http://www.rsabbs.com/~cburrows/

 
 
 

SB 16 & 1.2.9 kernel, no sound

Post by Deischinger Hara » Fri, 11 Aug 1995 04:00:00


In article Scott C. Cottrille writes:
|> I have kernel 1.2.9 and a SB 16.  I am using IRQ 9 (2), DMA 3 for 8-bit,
|> DMA 5 for 16-bit, port 0x220, and MIDI port 0x330.  I have tried DMA 1
|> for 8-bit, and I've also tried IRQs 5 and 7.  I am compiling the sound
|> code with only SB 16 support (no OPL3, no MIDI, no other sound cards.)
|> This is the sound code that came with kernel 1.2.9.  When I cat a wav file
|> to /dev/dsp, the speed is incorrect, but it plays fine other than that (it
|> plays the wav file back too slowly.)  When I cat a wave file to /dev/audio,
|> it plays at the correct speed, but is full of static.  The major and minor
|> versions of these two devices is correct.
|>
|> I also have an Intel EtherExpress card using IRQ 10, and port 0x300, and
|> an Adaptec 154x SCSI card.  No problems with either of these.
|>
|> Any suggestions?  Does a newer kernel fix sound problems?
|>
I also have a SB16.

/dev/dsp and /dev/audio do not detect the format of the file. They assume a
special format (/dev/dsp I think 8 bit, 4000 kHz - but you can change that with
ioctl; /dev/audio something a bit more complicate). If you simiply cat a
wav-file to the devices the data in the file and the format assumed to come in
do not fit - you get something strange. You should use a program like vplay (comes
with sndkit) to play a sound-file.

I hope that helps.

--
Deischinger Harald                      |         DON'T PANIC

 
 
 

SB 16 & 1.2.9 kernel, no sound

Post by Scott C. Cottril » Sun, 13 Aug 1995 04:00:00


: In article Scott C. Cottrille writes:
[clipped]

: I also have a SB16.

: /dev/dsp and /dev/audio do not detect the format of the file. They assume a
: special format (/dev/dsp I think 8 bit, 4000 kHz - but you can change that with
: ioctl; /dev/audio something a bit more complicate). If you simiply cat a
: wav-file to the devices the data in the file and the format assumed to come in
: do not fit - you get something strange. You should use a program like vplay (comes
: with sndkit) to play a sound-file.

: I hope that helps.

It does help, and I found some information from another source as well.  It
turns out that /dev/audio is for AU files only (for compatability with Sun),
and that /dev/dsp auto-detects the format of the file (if it can), but that
it doesn't know anything about the playback speed.  So, like you said, use
vplay to set the rate and playback a file.  Or convert everything to AU
files and send it to /dev/audio.

-scott