From alsa-devel-owner@alsa.jcu.cz  Fri Feb 12 11:34:06 1999
Received: from entry.jcu.cz (IDENT:perex@entry.jcu.cz [160.217.1.111])
	by marvin.jcu.cz (8.9.1a/8.9.1) with SMTP id LAA16390;
	Fri, 12 Feb 1999 11:33:51 +0100
Date: Fri, 12 Feb 1999 11:33:51 +0100 (CET)
From: Jaroslav Kysela <perex@jcu.cz>
To: George David Morrison <gdm@gedamo.demon.co.uk>
cc: alsa-devel@alsa.jcu.cz
Subject: Re: OPL3
In-Reply-To: <36C3146B.53634C45@gedamo.demon.co.uk>
Message-ID: <Pine.LNX.3.96.990212113123.4644I-100000@entry.jcu.cz>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Reply-To: alsa-devel@alsa.jcu.cz
Sender: alsa-devel-owner@alsa.jcu.cz
Precedence: list

On Thu, 11 Feb 1999, George David Morrison wrote:

> When I modprobe my Soundblaster, I get the message
> opl3: OPL2/3 chip not detected at 0x220/0x222

These ports are correct. If you look to the SB programming guide, then you
find that OPL ports are at 0x388 and at 0x220, too. I think that using
0x2X0 ports are better if you have multiple SB soundcards in the machine.

> which is not surprising because the OPL chip is at 0x388.
> However, I can't find any way of setting the OPL3 port.
> Am I missing something?
> 
> I then harded coded the port and...it still didn't detect it.
> In lowlevel/generic/opl3.c, the function snd_opl3_detect appears to
> return -ENODEV at the end regardless of whether the chip is detected or
> not.

My fault. I'm sorry. You may change last line in snd_opl3_detect function
to 'return 0' rather than 'return -ENODEV'. I fixed this bug on CVS.

							Jaroslav

-----
Jaroslav Kysela <perex@jcu.cz>
Academic Computer Centre, University of South Bohemia
Branisovska 31, C. Budejovice, CZ-370 05 Czech Republic


