Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Nov 1997 20:41:26 -0000 (GMT)
From:      Conrad Sabatier <conrads@neosoft.com>
To:        Amancio Hasty <hasty@rah.star-gate.com>
Cc:        rhh@ct.picker.com, multimedia@freebsd.org, Luigi Rizzo <luigi@labinfo.iet.unipi.it>
Subject:   Re: AWE 64 MIDI config -- I'm lost
Message-ID:  <XFMail.971118204126.conrads@neosoft.com>
In-Reply-To: <199711190151.RAA00564@rah.star-gate.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On 19-Nov-97 Amancio Hasty wrote:
> 
> Can you send me your system config file for your card?
> 
>       Tnks,
>       Amancio

Here's my kernel config (relevant part only):

controller      pnp0    #Luigi, you're a god!  :-)

# Controls all sound devices
controller      snd0

device sb0      at isa? port 0x220 irq 5 conflicts drq 1 vector sbintr
device sbxvi0   at isa? drq 5
device sbmidi0  at isa? port 0x330
device awe0     at isa? port 0x620 

# For normal case use next line
device opl0     at isa? port 0x388

IRQ 5, DRQs 1 and 5 are the "optimum" setting for this card.  But I also
earlier played around with other configurations and found no discernible
difference in the way the card performed.

I could probably do without the "conflicts" keyword in the sb0 definition, as
I'm not using anything else on IRQ 5 right now.  But I thought it might come in
handy later (you never know).

Also, I edited /sys/i386/isa/sound/sound_config.h and made sure the relevant
defines matched the kernel config.  In my case, the second setting in each case
is the one that's used (my machine is not "PC98"):

#ifndef SBC_BASE
#ifdef PC98
#define SBC_BASE        0x20d2  /* 0x20d2 is the factory default. */
#else
#define SBC_BASE        0x220   /* 0x220 is the factory default. */
#endif
#endif

#ifndef SBC_IRQ
#ifdef PC98
#define SBC_IRQ         10      /* IQR10 is not the factory default on PC9821. 
 */
#else
#define SBC_IRQ         5       /* IQR5 is the factory default.  */
#endif
#endif

#ifndef SBC_DMA
#ifdef PC98
#define SBC_DMA         3
#else
#define SBC_DMA         1
#endif
#endif

#ifndef SB16_DMA
#ifdef PC98
#define SB16_DMA        3
#else
#define SB16_DMA        5
#endif
#endif

#ifndef SB16MIDI_BASE
#ifdef PC98
#define SB16MIDI_BASE   0x80d2
#else
#define SB16MIDI_BASE   0x330
#endif
#endif

#ifndef AWE32_BASE
#define AWE32_BASE      0x620   /* Default = 0x620-3, 0xA20-3, 0xE20-3 */
#endif

#ifndef MPU_BASE
#define MPU_BASE        0x330
#endif

#ifndef MPU_IRQ
#define MPU_IRQ         5
#endif

My PnP configuration is:

CSN LDN conf en irqs  drqs others (PnP devices)
  1   0 OS    N  0 0   0 0  
  1   1 OS    N  0 0   4 4  
  1   2 OS    N  0 0   4 4  
  1   3 OS    N  0 0   4 4  
 
  2   0 OS    Y  5 0   1 5  port 0x220 0x330 0x388 
  2   1 OS    N  0 0   4 4  
  2   2 OS    Y  0 0   0 0  port 0x620 0xa20 0xe20
  2   3 OS    N  0 0   4 4  

Card 1 is the motherboard Crystal 4342 audio (pretty cheesy, IMHO).  The above
PnP config disables all of the Crystal devices to avoid any conflicts with the
AWE.  Also, I don't use the game or IDE devices on the AWE, so they're disabled
as well (Logical Device Numbers 1 and 3 on Card 2).

The OS/BIOS toggle in Luigi's PnP was really the critical factor in eliminating
any possible hardware conflicts between the Crystal and the AWE.  I found that
the "OS" switch was necessary to override my machine's BIOS, otherwise it
(the BIOS) would configure the Crystal devices, causing conflicts galore.

Last but not least, here's my dmesg results:

sb0 at 0x220 irq 5 drq 1 on isa
sb0: <SoundBlaster 16 4.16>
sbxvi0 at 0x0 drq 5 on isa
sbxvi0: <SoundBlaster 16 4.16>
sbmidi0 at 0x330 on isa
 <SoundBlaster MPU-401>
awe0 at 0x620 on isa
awe0: <SoundBlaster EMU8000 MIDI (RAM512k)>
opl0 at 0x388 on isa
opl0: <Yamaha OPL-3 FM>

And `cat /dev/sndstat`:

VoxWare Sound Driver:3.0-beta-950506 (Sun Feb 5 14:38:12 EST 1995
freebsd-hackers@freefall.cdrom.com)
Config options: ffffffff

Installed drivers: 
Type 1: OPL-2/OPL-3 FM
Type 2: SoundBlaster
Type 6: SoundBlaster16
Type 20: AWE32 Synth
Type 7: SB16 MIDI


Card config: 
SoundBlaster at 0x220 irq 5 drq 1
SoundBlaster16 at 0x0 irq 65535 drq 5
SB16 MIDI at 0x330 irq 65535 drq 4294967295
AWE32 Synth at 0x620 irq 65535 drq 4294967295
OPL-2/OPL-3 FM at 0x388 irq 65535 drq 4294967295

Audio devices:
0: SoundBlaster 16 4.16

Synth devices:
0: AWE32-0.4.0 (RAM512k)
1: Yamaha OPL-3

Midi devices:
0: SoundBlaster 16 Midi

Timers:
0: System Timer

Mixers:
0: SoundBlaster
1: AWE32 Equalizer


It's a bee-YOU-tee-full thing.  :-)

Oh, one last quick question, any tools for playing with the AWE32 Equalizer? :-)

--
Conrad Sabatier
http://www.neosoft.com/~conrads




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.971118204126.conrads>