*BSD News Article 78515


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mira.net.au!news.vbc.net!garlic.com!news.scruz.net!kithrup.com!news.Stanford.EDU!agate!spool.mu.edu!newspump.sol.net!www.nntp.primenet.com!nntp.primenet.com!enews.sgi.com!lll-winken.llnl.gov!fnnews.fnal.gov!nntp-server.caltech.edu!news
From: Stan <stan@bombay.gps.caltech.edu>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Soundblaster16 - What am I doing wrong?
Date: Tue, 17 Sep 1996 19:22:05 -0700
Organization: California Institute of Technology, Pasadena
Lines: 69
Message-ID: <323F5CCD.41C67EA6@bombay.gps.caltech.edu>
NNTP-Posting-Host: moe-ppp.caltech.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 2.0 (X11; I; BSD/386 uname failed)

I got a Soundblaster 16 for my machine here at home [486DX33, FBSD 2.0.5] and
I got it to sort of work, but not completely.  There are a few things that
don't seem quite right.

First off, here is my configuration for the kernel:

controller      snd0
device          sb0     at isa? port 0x220 irq 10 drq 1 vector sbintr
device          sbxvi0  at isa? drq6
device          sbmidi0 at isa? port 0x300
device          opl0    at isa? port 0x388

Since I had to change the irq and and dma settings on the card to avoid 
conflicts with other stuff, I also went into /usr/src/sys/i386/isa/sound
and hacked on sound_config.h:

#ifndef SBC_IRQ
#define SBC_IRQ         10      /* IQR7 is the factory default.  */
#endif

#ifndef SBC_DMA
#define SBC_DMA         1
#endif

#ifndef SB16_DMA
#define SB16_DMA        6
#endif

#ifndef SB16MIDI_BASE
#define SB16MIDI_BASE   0x300
#endif

Next I built the  kernel and booted it.  First off, I get a message:

PCM device 1 not installed.

I gather that this is for audio through the PC speaker, but I don't
know how to enable it.

I have NAS set up here, and I can play .au files with auplay or autool.
Aupanel shows me three devices:

Stereo Channel Input
Stereo Channel Output
Mono Channel Output

From experimenting, changing the gain on the Mono Channel Output changes
the volume for things going through auplay.

My real question is:

When I run xcdplayer, my SCSI cdrom feeds audio into the sound card's cd
audio connector, and sound comes out of the speakers, but I can't change
the volume.  I tried changing the gain in aupanel on each of the devices,
but nothing seems to affect it.  I also tried using the volume slider
in xcdplayer and got a message: ioctl(cdromvolctrl): Invalid argument
What am I doing wrong?

My last question regards xanim.  When I run this, it complains about
'can't open Linux audio device' unless I kill the au server process
beforehand.  Is there any way around this?

Thanks in advance for any advice.

-- 
-------------------------------------------------------------------------------
Stan                 |        "I just want to live like Yogi Bear
stan@cco.caltech.edu |         He kicks ass on the average Bear."
--------------------------------------- - Stukas Over Bedrock -----------------