Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Dec 1997 13:46:41 -0600 (CST)
From:      Dave Bodenstab <imdave@mcs.net>
To:        questions@FreeBSD.org
Cc:        luigi@iet.unipi.it
Subject:   Luigi's sound driver
Message-ID:  <199712171946.NAA18060@base486.home.org>

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

I've got a cheap SB clone: ``Advanced 16-bit plug & play sound card'' model
no. ``DRSOUND'' by Digital Research.  Works for dos games -- I run the init
prog. and set SB mode addr 220 irq 5 play dma 1 rec. dma 0.  The card has
an ``Opti 82C931'' chip.

After successfully installing both:

http://www.iet.unipi.it/~luigi/pnp971020.tgz
http://www.iet.unipi.it/~luigi/snd971209.tgz

I can now successfully cat *.au >/dev/dsp1, etc.  So I think I've installed
it correctly.  However there are a couple of warning messages that I'm unsure
about.  In addition, the docs mention that midi is not supported, but it sounds
like the docs are referring to external midi.  Since I can't get playmidi to
work (I get "open /dev/sequencer: Device not configured" and the kernel
message "/kernel: open: unit 1 not configured, perhaps you want unit 2 ?")
I assume that midi in general is not supported.  Is this correct?  If so,
is there any chance that this will change in the future?

  [
    $ ls -l /dev/sequencer /dev/dsp
    lrwxrwxrwx   1 root     wheel           4 Dec 15 17:47 /dev/dsp -> dsp1
    lrwxrwxrwx   1 root     wheel          10 Dec 15 17:47 /dev/sequencer -> sequencer1
  ]

Here's the warning messages I'm getting.  If these are not normal, what
am I doing wrong and how can I fix it.  

-----
With kernel config of:

  controller pnp0
  device pcm0 at isa? port 0x220 tty irq 5 drq 1 flags 0x10 vector pcmintr

I reboot and get:

  Dec 15 17:10:36 base586 /kernel: FreeBSD 2.2.5-RELEASE #0: Mon Dec 15 17:07:34 CST 1997
  Dec 15 17:10:36 base586 /kernel:     bin@base586.home.org:/usr/src/sys/compile/base586
  Dec 15 17:10:36 base586 /kernel: CPU: Cyrix 6x86 (486-class CPU)
  Dec 15 17:10:36 base586 /kernel:   Origin = "CyrixInstead"  DIR=0x1631  Stepping=1  Revision=6
  Dec 15 17:10:37 base586 /kernel:   CPU cache: write-through mode
  Dec 15 17:10:37 base586 /kernel: real memory  = 33554432 (32768K bytes)
  Dec 15 17:10:37 base586 /kernel: avail memory = 30474240 (29760K bytes)
  Dec 15 17:10:37 base586 /kernel: Probing for devices on PCI bus 0:
  Dec 15 17:10:37 base586 /kernel: chip0 <Intel 82437VX PCI cache memory controller> rev 2 on pci0:0
  Dec 15 17:10:37 base586 /kernel: chip1 <Intel 82371SB PCI-ISA bridge> rev 1 on pci0:7:0
  Dec 15 17:10:37 base586 /kernel: chip2 <Intel 82371SB IDE interface> rev 0 on pci0:7:1
  Dec 15 17:10:37 base586 /kernel: vga0 <VGA-compatible display device> rev 1 int a irq ?? on pci0:10
  Dec 15 17:10:37 base586 /kernel: Probing for PnP devices:
  Dec 15 17:10:37 base586 /kernel: CSN 1 Vendor ID: OPT0931 [0x3109143e] Serial 0xffffffff
  Dec 15 17:10:37 base586 /kernel: AD_WAIT_INIT FAILED 0xff
  Dec 15 17:10:37 base586 /kernel: mss_attach <OPTi931>1 at 0x530 irq 5 dma 1:0 flags 0x10
  Dec 15 17:10:37 base586 /kernel: pcm1 (OPTi931 <OPTi931> sn 0xffffffff) at 0x530 irq 5 drq 1 flags 0x10 id 13
  Dec 15 17:10:37 base586 /kernel: Probing for devices on the ISA bus:
  Dec 15 17:10:38 base586 /kernel: device at 0x220 already attached as unit 1
  Dec 15 17:10:38 base586 /kernel: device at 0x220 already attached as unit 1
  Dec 15 17:10:38 base586 /kernel: pcm0 not found at 0x220

-----
So I changed the kernel config to:

  controller pnp0
  device pcm0 at isa? port? tty irq 5 drq 1 flags 0x10 vector pcmintr

Now I reboot and get:

  Dec 15 17:34:09 base586 /kernel: Probing for PnP devices:
  Dec 15 17:34:09 base586 /kernel: CSN 1 Vendor ID: OPT0931 [0x3109143e] Serial 0xffffffff
  Dec 15 17:34:09 base586 /kernel: AD_WAIT_INIT FAILED 0xff
  Dec 15 17:34:09 base586 /kernel: mss_attach <OPTi931>1 at 0x530 irq 5 dma 1:0 flags 0x10
  Dec 15 17:34:09 base586 /kernel: pcm1 (OPTi931 <OPTi931> sn 0xffffffff) at 0x530 irq 5 drq 1 flags 0x10 id 13
  Dec 15 17:34:09 base586 /kernel: Probing for devices on the ISA bus:
  Dec 15 17:34:10 base586 /kernel: mss_probe: no address supplied, try default 0x530
  Dec 15 17:34:10 base586 /kernel: device at 0x530 already attached as unit 1
  Dec 15 17:34:10 base586 /kernel: sb_probe: no address supplied, try defaults (0x220,0x240)
  Dec 15 17:34:10 base586 /kernel: device at 0x220 already attached as unit 1
  Dec 15 17:34:10 base586 /kernel: pcm0 not found at 0xffffffff

  Dec 17 02:09:21 base586 /kernel.new: Probing for PnP devices:
  Dec 17 02:09:21 base586 /kernel.new: CSN 1 Vendor ID: OPT0931 [0x3109143e] Serial 0xffffffff
  Dec 17 02:09:21 base586 /kernel.new: AD_WAIT_INIT FAILED 0xff
  Dec 17 02:09:21 base586 /kernel.new: mss_attach <OPTi931>1 at 0x530 irq 5 dma 1:0 flags 0x10
  Dec 17 02:09:21 base586 /kernel.new: pcm1 (OPTi931 <OPTi931> sn 0xffffffff) at 0x530 irq 5 drq 1 flags 0x10 id 13
  Dec 17 02:09:21 base586 /kernel.new: Probing for devices on the ISA bus:
  Dec 17 02:09:22 base586 /kernel.new: mss_probe: no address supplied, try default 0x530
  Dec 17 02:09:22 base586 /kernel.new: device at 0x530 already attached as unit 1
  Dec 17 02:09:22 base586 /kernel.new: sb_probe: no address supplied, try defaults (0x220,0x240)
  Dec 17 02:09:22 base586 /kernel.new: device at 0x220 already attached as unit 1
  Dec 17 02:09:22 base586 /kernel.new: pcm0 not found at 0xffffffff

-----

Thanks.

Dave Bodenstab
imdave@mcs.net




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