Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Jun 1999 19:10:27 -0400 (EDT)
From:      Nataraj Dasgupta <ndasgupt@bridgeport.edu>
To:        jonsmith@galileo.physics.purdue.edu, freebsd-questions@freebsd.org, jsd@gamespot.com, robert@namodn.com, kayo@finalpath.ddns.org, dwhite@resnet.uoregon.edu, pdoshi01@student.vill.edu, swarup@bell-labs.com, kanodia@rice.edu
Subject:   Sound Card on 2.2.8
Message-ID:  <Pine.GSO.4.05.9906241854060.5443-100000@roadrunner>

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

Hi,

This message is being sent to the users of FreeBSD who have had to
configure their OPL-3 Sax sound card or otherwise. My question involves
setting up the Pnp controller to enable the sound card device. Have been
working on this since the morning, but to no avail. If you have any ideas,
that will be appreciated, all other parameters have been successfully set
up, and this bit is literally driving me up the wall.

FYI : I have an AMD K6-2 333 Mhz, with a OPL3-Sax Sound card. My current
version of BSD is 2.2.8.

After a pretty good research on the net on the setup of the card, I did
the following :

1.
I recompiled my kernel with the following line :

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

Q.  Is the line which defines the controller snd0 necessary ? Also, during
the build, there were some error messages regarding the pnp device, . I do
not have the documentation on that, but I did notice a couple of lines
which had errors involving the pnp. The compilation in all was successful
and did NOT return any errors.

2.
I ran a #sh MAKEDEV snd0 at /dev. 
I tried to run #sh MAKEDEV pcm0 and #sh MAKEDEV pnp0. However, the devices
were not detected. I checked the MAKEDEV file, and there does not seem to
be any proc to MAKEDEV pcm0 or pnp0. One of the users on the mailing list
at freebsd-questions stated that it was not necessary to make these
devices as MAKEDEV snd0 suffices. One FBSD user suggested removing the
if-fi conditional statement in the snd() section of the MAKEDEV file, but
I am not sure if that would have really changed the performance. It was
left untouched.

3. I rebooted my system and booted with option -c. And ran a config : 
config> pnp 1 0 os enable irq0 5 drq0 1 port0 0x530

On exiting config, the device was detected. 


Probing for PnP devices: CSN 1 Vendor ID: YMH0030 [0x3000a865] Serial
0x80860001 
mss_attach <Yamaha SA2>1 at 0x530 irq 5 dma 0:1 flags 0x11 
setting up yamaha registers 
set yamaha master volume to max 
pcm1 (CS423x/Yamaha <Yamaha SA2> sn 0x80860001) at 0x530 irq 5 drq 0:1
flags 0x11 id 20 
.
.
.
pcm0 not found at 0xffffffff

NOTE : The device was detected at pcm1 and not at pcm0 as expected. I
checked the mailing list letters and this seems to be a fairly common
problem.

In order to fix this,

I recompiled the kernel with device pcm1 . And created symbolic links to
read the following under /dev

> lrwxr-xr-x  1 root      wheel            6 Feb 25 01:38 audio -> audio1
> lrwxr-xr-x  1 root      wheel            4 Feb 25 03:23 dsp -> dsp1
> lrwxr-xr-x  1 root      wheel            5 Feb 25 03:23 dspW -> dspW1
> lrwxr-xr-x  1 root      wheel            4 Feb 25 03:23 dspdefault ->
dsp1

Furthermore, I ran a #sh MAKEDEV snd1 under /dev. However, I did not see
any snd1 entries under /dev .

Note :My dmesg successfully detects the card at pcm1.
          However, the last line reads :
          sequencer1: <???> at 0x530 (not functional)

          Is that a significant issue to be considered ?

But, on rebooting, the device was detected at pcm2 (?) and NOT
pcm1. I changed the symbolic links again, but nothing worked.

And, yes, I have been checking the success of the proc by  cat
soundfile.au > /dev/audio. One more point here : there is no /dev/audio,
I tried #sh MAKEDEV audio, but it was not recognised. 

dmesg  reads : 
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 0:1 flags 0x11
    setting up yamaha registers
    set yamaha master volume to max
    pcm2 (CS423x/Yamaha <Yamaha SA2> sn 0xffffffff) at 0x530 irq 5 drq 1
flags 0x11 id 20

    .
    .
    .
    pcm1 not found at 0xffffffff


Please note here : dma 0:1 looks suspicious. Is anyone aware of any
problems with this assignment ?

When I boot the system, the speaker comes alive for like  a second but
shuts up after that. Now, I suppose that does also indicate that my Pnp
BIOS is enabled (?)

Thanks in advance for help,


Nataraj Dasgupta.
Please send your replies to ndasgupt@bridgeport.edu

##########################################################################
AIX/VMS/NT/Novell Network Monitor and Analyst     B.S. Computer Science
Philip Morris International,                      University of Bridgeport
World Intranet HQ,                                Bridgeport, CT.
Rye Brook, NY 10573.                              Off Ph : 914 335 9808
Email : ndasgupt@bridgeport.edu                   Res Ph : 203 368 3798
##########################################################################






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.GSO.4.05.9906241854060.5443-100000>