Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Mar 1999 13:58:56 -0500 (EST)
From:      Chris <chrismar@readington.com>
To:        Ken Marx <kmarx@bigshed.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: yamaha opl-3 soundcard problem (2.2.8)
Message-ID:  <Pine.BSF.4.10.9903051347560.21213-100000@walnut.readington.com>
In-Reply-To: <36E01C70.1999EA92@bigshed.com>

next in thread | previous in thread | raw e-mail | index | archive | help
I'll answer (or try to) step by step:

> Excellent! Thanks for the thorough description.
> 
> I followed your instructions and things seem to work. (whoo-hoo!)

Wonderful!

> The output I saw differed slightly from yours, so I'm including that
> here just for completeness (and also in case someone notices possible
> problems). Thanks again, k.
> 
> --------------------
> for mine (kmarx):
> 
> I'm a bit concerned about the 'PnP override' in dmesg, and the non-functional
> sequencer from /dev/sndstat. I notice that my typing errors from
> the -c session were captured in the dmesg output - could those have confused
> things?
> 
> 
> 1. dmesg output looks like this:
>     Probing for PnP devices:
>     CSN 1 Vendor ID: YMH0020 [0x2000a865] Serial 0xffffffff
>     PnP: override config for CSN 1 LDN 0 vend_id 0x2000a865
>     PnP: override config for CSN 1 LDN 1 vend_id 0x2000a865
>     mss_attach <Yamaha SA2>2 at 0x530 irq 5 dma 1:3 flags 0x13
>     setting up yamaha registers
>     set yamaha master volume to max
>     pcm2 (CS423x/Yamaha <Yamaha SA2> sn 0xffffffff) at 0x530 irq 5 drq 1 flags
> 0
> x13 id 17

I think the PnP override means that you used boot -c to change some of the
variables that we different from what the kernel config had.  I tihnk I
remember seeing them on my box for 2.2.x, but I don't see them anymore
using 3.1S.

> 
> 2.  cat /dev/sndstat
>     
>     FreeBSD Audio Driver (981022) Mar  5 1999 08:56:48
>     Installed devices: 
>     pcm2: <Yamaha SA2> at 0x530 irq 5 dma 1:3  
>     sequencer2: <???> at 0x530 (not functional)

Mine says that too, I don't know what it means.

> 3. Didn't have all the /dev/audio{,[0-9]}, so had to MAKEDEV audio2

Works for me. :)

> 4. Didn't have a /dev/dspdefault and didn't see one in MAKEDEV
>    Made the link as you instructed, but don't know if it matters?

I don't know if it matters either, but I had one in there.

Chris


> ------------------------------------
> Chris wrote:
> > 
> > I have this same card, and I have been able to use it successfully under
> > 2.2.6, 2.2.8 and now 3.1-stable.  I will try and go step by step here as
> > far as what is in my knerel conf file and what you have to do at the boot
> > prompt..
> > 
> > This is what I have in my kernel config file:
> > 
> > controller      pnp0
> > device pcm0     at isa? port ? tty irq 10 drq 1 flags 0x0 vector pcmintr
> > device pcm1     at isa? port ? tty irq 10 drq 1 flags 0x0 vector pcmintr
> > 
> > I have the 2 in there because the pnp stuff is kinda weird.  When I first
> > started mucking with it and I just had pcm0 in there it wouldn't work.
> > Then I added pcm1 in there, and now it gets detected as pcm2.. go figure.
> > 
> > Anyways, add try adding that to the kernel config file and re-build the
> > kernel, then reboot.
> > 
> > Once you reboot you will need to go into the comand line configuration
> > thing-a-magig by doing -c at the boot prompt.
> > At the config> prompt, type the following, word for word, space for space
> > 
> > pnp 1 0 os enable irq0 5 drq0 1 drq1 3
> > pnp 1 0 port0 0x220 port1 0x530 port2 0x388 port3 0x330 port4 0x370
> > pnp 1 1 os enable port
> > 
> > I'm not too sure about the last line there, but all I know is typing that
> > works.  Of course hit return at the end of each line.  Then type 'exit'
> > and watch the screen.  If everything works you should see something
> > similar to this:
> > 
> > Probing for PnP devices:
> > CSN 1 Vendor ID: YMH0800 [0x0008a865] Serial 0xffffffff Comp ID: PNPb02f [0x2fb0x2fb0d041]
> > mss_attach <Yamaha YMF719 OPL-SA3>2 at 0x530 irq 5 dma 1:3 flags 0x13
> > setting up yamaha registers
> > set yamaha master volume to max
> > pcm2 (CS423x/Yamaha/AD1816 <Yamaha YMF719 OPL-SA3> sn 0xffffffff) at 0x530-0x537 irq 5 drq 1 flags 0x13 on isa
> > 
> > Now, let the machine boot up, and login or su to root.  Then issue a
> > 'cat /dev/sndstat', if it's set up correctly you should get something like
> > this:
> > 
> > FreeBSD Audio Driver (981002) Feb 25 1999 03:02:08
> > Installed devices:
> > pcm2: <Yamaha YMF719 OPL-SA3> at 0x530 irq 5 dma 1:3
> > 
> > Now, go into the /dev directory, we have to set up the links to point to
> > pcm0, pcm1 or pcm2 depending on what it got probed as.  Since mine is
> > pcm2, I will use that as an example, yours may differ of course..
> > Ok, now 'cd /dev', 'ls -al | grep audio'.   You will see audio through
> > audio9, since mine was found at pcm2, I have to link /dev/audio to
> > /dev/audio2, 'ln -s audio2 audio'.  You have to do the same for dsp, and
> > dspW and then you have to link dspdefault to the same thing you linked to
> > for dsp.  Here is what my audio, dsp, dspW and dspdefault look like:
> > 
> > lrwxr-xr-x  1 root      wheel            6 Feb 25 01:38 audio -> audio2
> > lrwxr-xr-x  1 root      wheel            4 Feb 25 03:23 dsp -> dsp2
> > lrwxr-xr-x  1 root      wheel            5 Feb 25 03:23 dspW -> dspW2
> > lrwxr-xr-x  1 root      wheel            4 Feb 25 03:23 dspdefault -> dsp2
> > 
> > Of course you will do yours according to what your card was detected as.
> > 
> > Now it's time for the test!  Find or download an .au file and issue
> > 'cat file.au > /dev/audio', if everything was done right you'll hear some
> > beautiful music to your ears!
> > 
> > I hope this helps,
> > Chris
> > 
> > On Thu, 4 Mar 1999, Ken Marx wrote:
> > 
> > > Hi,
> > >
> > > I've been trying to get things to work using a yamaha/opl-3
> > > soundcard on 2.2.8.
> > >
> > > (Note: I *have* done MAKEDEV snd0)
> > >
> > > If I build the kernel using the recomended:
> > >
> > > ###############
> > > controller      snd0
> > > device         opl0    at isa? port 0x38a
> > > ###############
> > >
> > > Things build/boot fine, but operations apps/operations fail when
> > > using the device(s). E.g., cat test.au > /dev/audio yields:
> > >
> > >       Operation not supported by device
> > >
> > > I saw a suggestion in the mail archives to use the Luigi way instead:
> > >
> > > ################
> > > controller      pnp0
> > > device pcm0 at isa? port ? tty irq 10 drq 1 flags 0x0 vector pcmintr
> > > ################
> > >
> > > (I copied the 2nd line verbatim from the conf/LINT file.)
> > >
> > > But when I do this, the build fails:
> > > --------------------
> > > ../../i386/isa/snd/ad1848.c: In function `cs423x_attach':
> > > ../../i386/isa/snd/ad1848.c:1519: `pcmintr' undeclared (first use this
> > > function)
> > > ../../i386/isa/snd/ad1848.c:1519: (Each undeclared identifier is reported only
> > > once
> > > ../../i386/isa/snd/ad1848.c:1519: for each function it appears in.)
> > > ../../i386/isa/snd/ad1848.c: In function `opti931_attach':
> > > ../../i386/isa/snd/ad1848.c:1625: `pcmintr' undeclared (first use this
> > > function)
> > > ../../i386/isa/snd/ad1848.c: In function `opti925_attach':
> > > ../../i386/isa/snd/ad1848.c:1690: `pcmintr' undeclared (first use this
> > > function)
> > > ../../i386/isa/snd/ad1848.c: In function `guspnp_attach':
> > > ../../i386/isa/snd/ad1848.c:1740: warning: implicit declaration of function
> > > `pnp_write'
> > > ../../i386/isa/snd/ad1848.c:1751: `pcmintr' undeclared (first use this
> > > function)
> > > *** Error code 1
> > > ----------------------
> > >
> > > Can someone tell me what I'm missing/doing wrong? And/or what to do
> > > in order to make it work using either/both method?
> > >
> > > I'm obviously flying a bit blind here, so a pointer to *complete*
> > > instructions would really be appreciated. (E.g., if I'm to use pnp,
> > > are there MAKEDEV or -c boot steps that I need to perform?)
> > >
> > > Thanks in advance,
> > > k.
> > > --
> > > Ken Marx, kmarx@bigshed.com
> > > Seediously. What I mean by zat is ze following. I want to capture mindshare and
> > > keep the faith regarding the technology plan.
> > >               - http://cgi.bigshed.com/~kmarx/cgi-bin/speak.cgi
> > >
> > >
> > > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > > with "unsubscribe freebsd-questions" in the body of the message
> > >
> 
> -- 
> Ken Marx, kmarx@bigshed.com
> Objectify the deployment!!
> 		- http://cgi.bigshed.com/~kmarx/cgi-bin/speak.cgi
> 



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?Pine.BSF.4.10.9903051347560.21213-100000>