Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Nov 1998 21:52:49 +0000
From:      Mark Ovens <marko@uk.radan.com>
To:        questions@FreeBSD.ORG
Subject:   Re: [Fwd: Yamaha OPL card]
Message-ID:  <365C7C31.12873134@uk.radan.com>
References:  <365C1AAD.51A9C56C@uk.radan.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> Jim Barker wrote:
> >
> > I will investigate the pcm driver that you are referring to, I appreciate
> > the insight, thanks.  If you could provide some detail's, that would
> > be great as well, thank you.
> >

OK, here's the sound stuff from my kernel config file:

  # Sound card support stuff

  # Controls all sound devices
  # controller	snd0

  # SoundBlaster DSP driver - for SB, SB Pro, SB16, PAS(emulating SB)
  # device sb0      at isa? port 0x220 irq 5 drq 1 vector sbintr

  # SoundBlaster 16 DSP driver - for SB16 - requires sb0 device
  # device sbxvi0   at isa? drq 5

  # SoundBlaster 16 MIDI - for SB16 - requires sb0 device
  # device sbmidi0  at isa? port 0x330

  # MS Sound System (AD1848 Based Boards)
  # device mss0 at isa? port 0x530 irq 11 drq 3 vector adintr

  # Yamaha OPL-2/OPL-3 FM - for SB, SB Pro, SB16, PAS
  # device opl0     at isa? port 0x388

  # 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 10 drq 1 flags 0x0 vector pcmintr

Notice that _all_ ``sb*'' entries _and_ ``snd0'' are #'d out, only
``pcm0'' is enabled. Also you may need to use Plug 'n' Pray. If so, make
sure this is in your config file:

  controller     pnp0

This is from dmesg (I booted with ``-v''). Note that I had to ``boot
-c'' and modify the pnp settings for _my_ sound card (Pine MegaWave
Gold)

  CSN 1 Vendor ID: YMH0801 [0x0108a865] Serial 0xffffffff
  PnP: override config for CSN 1 LDN 0 vend_id 0x0108a865
  pnp1:0 port 0x0220 0x0530 0x0388 0x0330 irq 5:0 drq 0:1 en 1 fl 0x0

  ......

  mss_probe: no address supplied, try default 0x530
  mss_detect - chip revision 0x0a
  mss_detect() - Detected CS4231
  pcm0 at 0x530 irq 10 drq 1 flags 0xa200 on isa
  mss_attach <mss>0 at 0x530 irq 10 dma 1:1 flags 0xa200

All the documention for the pcm0 driver can be found in
/usr/src/sys/i386/snd/README (additional info is in the file CARDS in
the same dir).

Note that the install instructions in README describe patching source
files and copying soundcard.h. This is not necessary, the notes were
obviously written when this was only a patch and have not been updated.
All the source files are installed correctly already.

HTH

> > --
> > Jim Barker
> > UNIX/NT Administrator
> > GTE Internetworking
> > Suite 1200
> > 1300 N. 17th Street
> > Arlington, VA 22209
> >
> > Phone: (703) 284-4798
> > Fax:  (703) 284-4777
> 
> --
>   Trust the computer industry to shorten Year 2000 to Y2K. It
>   was this thinking that caused the problem in the first place.
> 
> Mark Ovens, CNC Applications Engineer, Radan Computational Ltd.
> Bath, Avon, England.  Sheet Metal CAD/CAM Solutions
> mailto:marko@uk.radan.com    http://www.radan.com

-- 
   When everything's coming your way, you're in the wrong lane.

Mark Ovens, CNC Applications Engineer, Radan Computational Ltd
Sheet Metal CAD/CAM Solutions
mailto:marko@uk.radan.com    http://www.uk.radan.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



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