*BSD News Article 88943


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!news.ececs.uc.edu!newsfeeds.sol.net!news.maxwell.syr.edu!news.nacamar.de!news.bln.de!mind.de!nostromo.in-berlin.de!ripley
From: ripley@nostromo.in-berlin.de (H. Eckert)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: How to get CD played sound to speakers? GUS
Date: 12 Feb 1997 09:44:09 GMT
Organization: Private access site (FreeBSD 2.1-R), Berlin, Germany, Europe
Lines: 54
Message-ID: <slrn5g3478.r22.ripley@nortobor.nostromo.in-berlin.de>
References: <stanbE5CAz8.KxF@netcom.com> <p12qd5.6j.ln@dolphin.neosoft.com>
NNTP-Posting-Host: nortobor.nostromo.in-berlin.de
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: slrn (0.8.8.2 UNIX)
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:35347

conrads@neosoft.com (Conrad Sabatier):
> Hmmm.  Maybe your soundcard is being init'ed to zero volume?
> 
> Try running xmix (it's in packages/audio) to set the volume.

I've had a similar problem for quite a while as I couldn't switch
to FreeBSD using BootEasy, so I had to push the hardware reset.
Now I installed os-bs which works much better and can use software
reset to switch to BSD thus not losing the soundcard's config...

I've got a "Wave Excel" card which seems to be an extended version
of the Audio Excel.  Apparently there is a specialized driver for this
family, but it isn't ported to FreeBSD (look at ...isa/sound/aedsp16.c).

I configured the kernel as follows:

controller      snd0
device sb0      at isa? port 0x220 irq 7 conflicts drq 1 vector sbintr
device opl0     at isa? port 0x388 irq 7 drq 1 conflicts
device mpu0     at isa? port 0x330 irq 9 drq 0

And the card is recognized:

Jan 20 08:54:28 nortobor /kernel: sb0 at 0x220 irq 7 drq 1 on isa
Jan 20 08:54:28 nortobor /kernel: sb0: <SoundBlaster Pro 3.2>
Jan 20 08:54:28 nortobor /kernel: opl0 at 0x388 irq 7 drq 1 on isa
Jan 20 08:54:28 nortobor /kernel: opl0: <Yamaha OPL-3 FM>
Jan 20 08:54:28 nortobor /kernel: mpu0 at 0x330 irq 9 drq 0 on isa
Jan 20 08:54:28 nortobor /kernel: mpu0: <MPU-401 MIDI Interface 0.0 >

If initialized from its DOS-driver the card works fairly well (midiplay
runs but doesn't sound good, some instruments are incorrect and the
wave table isn't used at all) and cd-audio output works fine.
Trying to initizialize the card from BSD fails completely.  If I
cold boot the system, there's only silence and trying to use mixer or
xmix fails: SOUND_MIXER_READ_DEVMASK: Device not configured.

Am I missing something apart from finishing porting aedsp16.c ?
I tried to put it into the kernel, but then it can't link.  The missing
functions are memset() (would be easy to replace), request_region()
and check_region().
Apparently the ...region() calls allocate some i/o addresses for the
driver so other parts of the kernel don't use them (under Linux from
where the sound driver originally was ported) but I'm not the FreeBSD
kernel-hacker who knows what to do about that...

Greetings,
				Ripley
-- 
H. Eckert, 10777 Berlin, Germany
ISO 8859-1: Ä=Ae, Ö=Oe, Ü=Ue, ä=ae, ö=oe, ü=ue, ß=sz.
"(Technobabbel)" (Jetrel) - "Müssen wir uns diesen Schwachsinn wirklich
anhören?" (Neelix)