From alsa-user-owner@alsa.jcu.cz  Wed Oct 21 19:17:31 1998
Received: from mail.vr.IN-Berlin.DE (gnu.in-berlin.de [192.109.42.4])
	by marvin.jcu.cz (8.9.1a/8.9.1) with ESMTP id TAA12274
	for <alsa-user@jcu.cz>; Wed, 21 Oct 1998 19:15:03 +0200
Received: from hirsch.in-berlin.de (root@hirsch.in-berlin.de [192.109.42.6])
	by mail.vr.IN-Berlin.DE (8.8.8/8.8.8) with ESMTP id TAA12979
	for <alsa-user@jcu.cz>; Wed, 21 Oct 1998 19:14:58 +0200 (CEST)
	(envelope-from ml@knorke.in-berlin.de)
Received: by hirsch.in-berlin.de (Smail3.2) 
	  from  knorke.in-berlin.de with bsmtp
	  id <m0zW1qa-000cjyC>; Wed, 21 Oct 1998 19:14:56 +0200 (CEST)
Received: by knorke.in-berlin.de
	id m0zW1gL-000RCpC; Wed, 21 Oct 1998 18:04:21 +0100 (BST)
Message-ID: <19981021180421.A2318@knorke.in-berlin.de>
Date: Wed, 21 Oct 1998 18:04:21 +0100
From: "M. List" <ml@knorke.in-berlin.de>
To: alsa-user@jcu.cz
Subject: Re: Problem w/ OPL3-SA3
References: <19981020183210.A2384@knorke.in-berlin.de> <m0zVgSP-000PnlC@ale.physics.sunysb.edu>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
In-Reply-To: <m0zVgSP-000PnlC@ale.physics.sunysb.edu>; from sharkey@ale.physics.sunysb.edu on Tue, Oct 20, 1998 at 02:24:30PM -0400
Reply-To: alsa-user@alsa.jcu.cz
Sender: alsa-user-owner@alsa.jcu.cz
Precedence: list

Hi,

thanks to Eric (sharkey@ ale. physics. sunysb. edu) my
snd_port is now correct (0x370) and the error messages are
gone.  Thank you!  Daniel (underley@ zakopane. top. pl)
reminded me to check my /etc/isapnp.conf, and I think it is
OK.  Thank you, too!

Unfortunately I cannot yet hear anything.  I set the volume
using alsamixer and tried to play an .au file using both
play (from sox) and aplay, and everything looks normal,
only there is no sound.  Also I saw that only irq 5 is used
by ALSA, while OSS uses both 5 and 7 - is this the problem?
What can I do now?  Maybe there is a step-by-step-howto
somewhere?

Thanks in advance!

> > I'm new to alsa, so maybe I do sth. wrong.  My new
> > mainboard w/ on-board sound works fine out of the box using
> > OSS.  Now I installed the alsa package 0.2.0, but on
> > modprobe snd-opl3sa I get
> > 
> > snd: OPL3-SA [0x203] detect (0) = 0xff
> > snd: Yamaha OPL3-SA soundcard #1 not found at 0x203 or device busy
> > snd: Yamaha OPL3-SA soundcard not found or device busy
> > /lib/modules/2.0.35/misc/snd-opl3sa.o: Device or resource busy
> > snd-pcm: Device or resource busy
> > 
> > The following options are in my /etc/conf.modules:
> > 
> > options snd snd_major=14 snd_cards_limit=1
> > options snd-opl3sa snd_index=1 snd_id="opl3sa" snd_port=0x203 \
> > 	snd_wss_port=0x530 snd_midi_port=0x330 snd_fm_port=0x388 \
> > 	snd_irq=5 snd_dma1=0x0 snd_dma2=0x3
> > 
> > What's wrong here?
> 
> Why is snd_port set to 203?  That looks wrong to me.  I think 203 is your
> system's plug and play port.  I mean the port for setting all PNP devices,
> it's not specific to your sound card.
> 
> According to INSTALL:
> 
>   Module snd-opl3sa.o
>   -------------------
> 
>     Module for Yamaha OPL3-SA2/SA3 soundcards.
> 
>     snd_port    - control port # for OPL3-SA chip
> 
> It's supposed to be the sound control port, not the PNP read port.
> 
> If you look in opl3-sa.c you'll find the line:
> 
> int snd_port[ SND_CARDS ] = SND_DEFAULT_PORT;   /* 0xf86,0x370,0x100 */
> 
> Which gives three likely port numbers.
> 
> > Content-Type: text/plain; charset=us-ascii
> > Content-Description: devices.cfg
> > Content-Disposition: attachment; filename="oss.devices.cfg"
> > 
> > /SECUREAUDIO OFF
> > /IRQEXCLUDE 3 4
> > /DMAEXCLUDE 2
> > -YMH0020 #Generic Yamaha OPL3-SA2 based sound card (type-1)
> > /PNPDEV YMH0021 P# P530 P388 P330 P370 I5 I7 D0 D3
> > RAWMSS OPNP P530 I5 D0 d3
> > OPL3 OPNP P388
> > UART401 OPNP P330 I7
> > OPL3CTL OPNP P370
> > PNP
> 
> 
> You've got the setting "OPL3CTL OPNP P370" here, which seems to be for the
> control port.  Why not try changing your settings to:
> 
> options snd snd_major=14 snd_cards_limit=1
> options snd-opl3sa snd_index=1 snd_id="opl3sa" snd_port=0x370 \
> 	snd_wss_port=0x530 snd_midi_port=0x330 snd_fm_port=0x388 \
> 	snd_irq=5 snd_dma1=0x0 snd_dma2=0x3
> 
> And see if that helps.
> 
> Eric

