From alsa-user-owner@alsa.jcu.cz  Tue Oct 20 20:24:59 1998
Received: from ale.physics.sunysb.edu (root@ale.physics.sunysb.edu [129.49.30.117])
	by marvin.jcu.cz (8.9.1a/8.9.1) with ESMTP id UAA02448
	for <alsa-user@jcu.CZ>; Tue, 20 Oct 1998 20:24:34 +0200
Received: from ale.physics.sunysb.edu (really [127.0.0.1]) by superk.physics.sunysb.edu
	via in.smtpd with esmtp (ident sharkey using rfc1413)
	id <m0zVgSP-000PnlC@ale.physics.sunysb.edu> (Debian Smail3.2.0.101)
	for <alsa-user@jcu.cz>; Tue, 20 Oct 1998 14:24:33 -0400 (EDT) 
Message-Id: <m0zVgSP-000PnlC@ale.physics.sunysb.edu>
To: alsa-user@jcu.CZ
cc: ml@knorke.in-berlin.de
From: sharkey@ale.physics.sunysb.edu
Subject: Re: Problem w/ OPL3-SA3 
In-reply-to: Your message of "Tue, 20 Oct 1998 18:32:10 BST."
             <19981020183210.A2384@knorke.in-berlin.de> 
Date: Tue, 20 Oct 1998 14:24:30 -0400
Reply-To: alsa-user@alsa.jcu.cz
Sender: alsa-user-owner@alsa.jcu.cz
Precedence: list

> 
> --Dxnq1zWXvFF0Q93v
> Content-Type: text/plain; charset=us-ascii
> 
> Hi there,
> 
> 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

