From owner-freebsd-questions Thu Jan 28 18:27:38 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA01387 for freebsd-questions-outgoing; Thu, 28 Jan 1999 18:27:38 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from pobox.ids.net (pobox.ids.net [155.212.1.122]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA01360 for ; Thu, 28 Jan 1999 18:27:27 -0800 (PST) (envelope-from CGiordano@ids.net) Received: from ids.net (dyn053a.scp-ri.ids.net [155.212.233.53]) by pobox.ids.net (8.9.1a/8.9.1.1) with ESMTP id VAA10053; Thu, 28 Jan 1999 21:27:23 -0500 (EST) Message-ID: <36B11BA2.317E4849@ids.net> Date: Thu, 28 Jan 1999 21:23:30 -0500 From: "Christopher M. Giordano" Reply-To: CGiordano@ids.net X-Mailer: Mozilla 4.5 [en] (X11; I; FreeBSD 3.0-CURRENT i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-questions@FreeBSD.ORG CC: jmutter@netwalk.com Subject: Re: pcm sound drivers Content-Type: multipart/mixed; boundary="------------A2633D21F8D0677CB3B577C2" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This is a multi-part message in MIME format. --------------A2633D21F8D0677CB3B577C2 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit James A. Mutter wrote: > I'm trying to get a SoundBlaster AWE64 ISA PnP card working with the pcm > drivers. Does anyone know if this is possible? I'm really not having any > luck hear. > > If someone with this card could post the relevant snipit from their kernel > that would be great. Yes, it is possible, I've been using my SoundBlaster AWE64 ISA PnP with FreeBSD for about 9 months now with no problems. I don't know whether you received a response to this message yet, but since I just finished writing instructions for a coworker to do this with a SB16, I thought I'd modify it for the AWE64 for you. It goes into more detail than you probably need for building the kernel, since it was originally written to help a relative newbie. Hope this helps, Chris Giordano cgiordano@ids.net --------------A2633D21F8D0677CB3B577C2 Content-Type: text/plain; charset=us-ascii; name="sound.txt" Content-Disposition: inline; filename="sound.txt" Content-Transfer-Encoding: 7bit Adding sound to FreeBSD - SB AWE64 Chris Giordano 28-Jan-99 This installs Luigi's new pcm audio drivers, which AFAIK do not support MIDI - I think you need the Voxware drivers for that, but they will probably become unsupported at some point in the (near?) future. ------------------------------------------------------------------------------- 1.) cd /sys/i386/conf 2.) Add the following lines to your kernel config file to enable plug-and-play and the pcm audio driver, and also allow reading of the /kernel.config file. (the kernel config file is named GENERIC in this example): options USERCONFIG #boot -c editor options USERCONFIG_BOOT #imply -c and parse info area; 2.2.X only # Enable PnP support in the kernel. This allows you to automatically # attach to PnP cards for drivers that support it and allows you to # configure cards from USERCONFIG. See pnp(4) for more info. controller pnp0 # Luigi's snd code (use INSTEAD of snd0 and all VOXWARE drivers!). # You may also wish to enable the pnp controller with this, for pnp # sound cards. # device pcm0 at isa? port ? tty irq 5 drq 1 flags 0x15 vector pcmintr 2.) Rebuild the kernel: $ cd /sys/i386/conf $ /usr/sbin/config ./GENERIC $ cd ../../compile/GENERIC $ make depend $ make all $ make install $ make clean NOTE: make install moves your old kernel to /kernel.old, so if your new /kernel won't boot for some reason, you can reboot specifying /kernel.old at the boot prompt. 3.) You can override the PnP config at boot by placing the following lines in the specified file (optional): a.) for FreeBSD 2.2.8 and previous in file /kernel.config : USERCONFIG pnp 1 0 os enable port0 0x220 irq0 5 drq0 1 drq1 5 port1 0x330 port2 0x338 pnp 1 1 os enable port0 0x200 pnp 1 2 os enable port0 0x620 port1 0xa20 port2 0xe20 quit b.) or, for FreeBSD 3.X in file /boot/pnp.conf : pnp 1 0 os enable port0 0x220 irq0 5 drq0 1 drq1 5 port1 0x330 port2 0x338 pnp 1 1 os enable port0 0x200 pnp 1 2 os enable port0 0x620 port1 0xa20 port2 0xe20 and then add the following to /boot/loader.rc : load -t userconfig_script /boot/pnp.conf Note: Line 1 of pnp commands configures sb, sbmidi, and opl; line 2 configures the gameport; line 3 configures the AWE synth. Your pnp irq/drq/port values may vary for your system configuration. 4.) Reboot. 5.) Make the pcm sound devices $ cd /dev $ ./MAKEDEV snd1 6.) Check that it worked, you should get output similar to below: $ cat /dev/sndstat FreeBSD Audio Driver (981002) Jan 17 1999 17:33:23 Installed devices: pcm1: at 0x220 irq 5 dma 1:5 sequencer1: at 0x338 (not functional) 7.) Create the necessary symlinks (I think step 5 does this for you when you specify snd1 and not snd0; if so, skip this (obviously)): $ cd /dev $ ln -fs dsp1 /dev/dsp $ ln -fs dspW1 /dev/dspW $ ln -fs audio1 /dev/audio $ ln -fs mixer1 /dev/mixer $ ln -fs music1 /dev/music $ ln -fs sequencer1 /dev/sequencer ------------------------------------------------------------------------------- --------------A2633D21F8D0677CB3B577C2-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message