*BSD News Article 86977


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.mel.connect.com.au!news.syd.connect.com.au!phaedrus.kralizec.net.au!news.mel.aone.net.au!grumpy.fl.net.au!news.webspan.net!www.nntp.primenet.com!nntp.primenet.com!mindspring!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!su-news-hub1.bbnplanet.com!arclight.uoregon.edu!leto!hammer.uoregon.edu!news.icm.edu.pl!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: V2.1-R: Updated support for my soundcard (AEDSP16) anyone?
Date: 17 Jan 1997 04:23:29 GMT
Organization: Private access site, Berlin, Germany, Europe
Lines: 43
Message-ID: <slrn5dtvm1.ag6.ripley@nortobor.nostromo.in-berlin.de>
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:34148


Hi.

I am running FreeBSD 2.1-R as I got it from the January-1996 CD and
I want to use my soundcard properly, too.  So far I succeeded in
installing it as a soundblaster which more or less works (the "less"
part being primarily a missing mixer device and the initialization).
If I boot the machine into DOS first to get the card's driver to initialize
it and warmboot afterwards it's ok, but on a coldboot there is only silence.

From what I found in /sys/i386/isa/sound it seems what I really need
to get into the kernel is the code from aedsp16.c, so I tweaked the
headerfiles and the kernel-filelist (/sys/i386/conf/files.i386).

The source-code still contains a very Linux-ish reference to a headerfile
called <linux/ioport.h> so I commented the include out.  The file seems
to compile fine now, but linking the kernel fails due to some missing
functions.  There are two calls to memset() which I could easily
replace with bzero() or even a manual loop and several calls to
request_region() and check_region() of which I have no clue at all
what they might do.

I looked into the -current tree at the University's mirror archive but
the source seems to be the very same I already have at home...

So, is there anybody out there who has a similar card and who succeeded
in getting this to work under FreeBSD ?  I have a Wave Excel which
as far as I can tell is just the Audio Excel plus a wavetable.

Greetings,
				Ripley

PS: What would be the proper approach to getting this into the config-file
as an option or device-variant ?  At the moment I hardcoded the #defines
into local.h and since the kernel doesn't link commented out the line
referring to it in the files.i386.  I'd rather put "option AEDSP16_SB"
into the config file...
-- 
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)