*BSD News Article 99753


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!feed1.news.erols.com!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!infeed1.internetmci.com!newsfeed.internetmci.com!news.telstra.net!not-for-mail
From: Wayne Farmer <wfarmer@pcug.org.au>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Soundblaster Vibra16 Plug'nPlay card support
Date: Wed, 16 Jul 1997 23:14:18 +1000
Organization: Very Messy
Lines: 89
Message-ID: <33CCC92A.1C3C@pcug.org.au>
NNTP-Posting-Host: gonzo.telstra.net
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.02 (Win95; I)
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:44518


I have patched the 2.2.2 kernel source with the June 96 beta Plug'nPlay
code and it now "seems" to do the right thing when compiling the kernel
and booting.  But does not work ... what might I be doing wrong here ?

1) part of kernel config file
# Optional ISA Plug-n-Play support      
controller      pnp0

controller      snd0
device          sb0     at isa? port 0x220 irq 5 drq 1 vector sbintr
device          sbxvi0  at isa? drq 5
device          sbmidi0 at isa? port 0x330
device          opl0    at isa? port 0x388

options         "SBC_BASE=0x220"
options         "SBC_IRQ=5"
options         "SBC_DMA=1"
options         "SB16_DMA=5"
options         "SB16MIDI_BASE=0x330"  

I have fiddled with the options bit but does not make any difference.

2) pnpinfo output is :
Checking for Plug-n-Play devices...
Trying Read_Port at 203
Card assigned CSN #1
Board Vendor ID: CTL0070
Board Serial Number: ffffffff
PnP Version: 1.0
Vendor Version: 16
Device Description: Creative ViBRA16C PnP
Logical Device ID: CTL0001 (01008c0e)
Device Description: Audio
Start Dependent Function
Good Configuration
IRQ: 5 
DMA: 0 1 
DMA: 8-bit only
DMA: Device is not a bus master
DMA: May execute in count by byte mode
DMA: May not execute in count by word mode
DMA: Compatibility mode
DMA: 5 
DMA: 16-bit only
DMA: Device is not a bus master
DMA: May not execute in count by byte mode
DMA: May execute in count by word mode
DMA: Compatibility mode
Device decodes the full 16-bit ISA address
I/O Range maximum address: 0x220
I/O Range maximum address: 0x220
I/O alignment for minimum: 1
I/O length: 16
Device decodes the full 16-bit ISA address
I/O Range maximum address: 0x330
I/O Range maximum address: 0x330
I/O alignment for minimum: 1
I/O length: 2
Device decodes the full 16-bit ISA address
I/O Range maximum address: 0x388
I/O Range maximum address: 0x388
I/O alignment for minimum: 1
I/O length: 4
Start Dependent Function
...

3) part of boot log
Jul 16 22:49:55 gonzo /kernel: sb0: <SoundBlaster 16 4.13>
Jul 16 22:49:55 gonzo /kernel: sbxvi0 at 0x0 drq 5 on isa
Jul 16 22:49:55 gonzo /kernel: sbxvi0: <SoundBlaster 16 4.13>
Jul 16 22:49:55 gonzo /kernel: sbmidi0 at 0x330 on isa
Jul 16 22:49:55 gonzo /kernel:  <SoundBlaster MPU-401>
Jul 16 22:49:55 gonzo /kernel: opl0 at 0x388 on isa
Jul 16 22:49:55 gonzo /kernel: opl0: <Yamaha OPL-3 FM>

Jul 16 22:51:04 gonzo /kernel: Sound: DMA timed out - IRQ/DRQ config
error?
Jul 16 22:51:06 gonzo /kernel: Sound: DMA timed out - IRQ/DRQ config
error

DMA time-out is when I try to use the sound card.

I think a few have had troubles with Plug'nPlay devices.
Any help out here - I'll even write some doco if I understand what is
going on.

Any reason why the Plug'nPlay code has not gone into the core code ?

Wayne