From alsa-user-owner@alsa.jcu.cz  Fri Oct  2 00:29:49 1998
Received: from adonis.lbl.gov (romosan@adonis.lbl.gov [131.243.48.45])
	by marvin.jcu.cz (8.9.1a/8.9.1) with ESMTP id AAA23191
	for <alsa-user@alsa.jcu.cz>; Fri, 2 Oct 1998 00:27:14 +0200
Received: (from romosan@localhost)
	by adonis.lbl.gov (8.9.1a/8.9.1/Debian/GNU) id PAA13666;
	Thu, 1 Oct 1998 15:27:12 -0700
Date: Thu, 1 Oct 1998 15:27:12 -0700
Message-Id: <199810012227.PAA13666@adonis.lbl.gov>
From: Alex Romosan <romosan@adonis.lbl.gov>
To: alsa-user@alsa.jcu.cz
Subject: Yamaha OPL3-SA3 (YMF715)
Reply-To: alsa-user@alsa.jcu.cz
Sender: alsa-user-owner@alsa.jcu.cz
Precedence: list

i have one of the above mentioned sound chips (integrated on an Intel
AL440LX motherboards). i started with alsa drivers from cvs checked out
yesterday. after compiling the drivers and trying to insert the
modules in the kernel i got the following:

snd: OPL3-SA [0x220] detect (0) = 0xff 
Sep 30 23:14:39 caliban kernel: snd: Yamaha OPL3-SA soundcard #1 not found at 0x220 or device busy 

based on a previous message, i modified alsa-driver/cards/opl3-sa.c
like this:

Index: cards/opl3-sa.c
===================================================================
RCS file: /home/alsa/cvsroot/alsa-driver/cards/opl3-sa.c,v
retrieving revision 1.8
diff -r1.8 opl3-sa.c
159a160
>     case 0x07:

now, the card was being recognized, but still no sound. i had to
insert the snd-pcm1-oss module to get the sound to work.

cat /dev/sndstat gives me the following:

Sound Driver:3.8.1a-980706 (ALSA v0.2.0-pre8 emulation code)
Kernel: Linux caliban 2.0.35 #1 Fri Aug 28 01:52:08 PDT 1998 i686
Config options: 0

Installed drivers: 
Type 10: ALSA emulation

Card config: 
Yamaha OPL3-SA3 at 0x220, irq 5, dma 0&1

Audio devices: 
0: Yamaha OPL3-SA3

Synth devices: 
0: OPL3 FM

Midi devices: 
0: MPU-401 (UART)

Timers: 
0: Yamaha OPL3-SA3
1: AdLib timer #1
2: AdLib timer #2
7: system timer

Mixers: 
0: Yamaha OPL3-SA3

and cat /proc/asound/oss-devices this:

  0: [0- 0]: mixer
  2: [0- 2]: raw midi
  3: [0- 3]: digital audio
  4: [0- 4]: digital audio
  5: [0- 5]: digital audio
  6:       : sndstat
  9: [0- 9]: raw midi

i can play cd's (but rvplayer doesn't work). also the mixer doesn't
seem to work (i.e. bass/treble have no effect). moreover, in
alsamixer, when i try to change the bass/treble settings, the sound
goes off and i can get it back only by touching the FM setting (which
i don't know what is supposed to do). also i can't play midi files:

playmidi file.midi gives:

open /dev/sequencer: Operation not supported by device

this is the relevant part of the conf.modules file:

alias char-major-14 snd
alias snd-minor-oss-0 snd-opl3sa
alias snd-minor-oss-3 snd-pcm1-oss
alias snd-minor-oss-4 snd-pcm1-oss
alias snd-minor-oss-5 snd-pcm1-oss
alias snd-minor-oss-12 snd-pcm1-oss
alias snd-card-0 snd-opl3sa
options snd snd_major=14 snd_cards_limit=1
options snd-opl3sa snd_index=1 snd_id=1 snd_port=0x220 snd_wss_port=0x530 snd_midi_port=0x330 snd_fm_port=0x388 snd_irq=5 snd_dma1=0 snd_dma1_size=4 snd_dma2=1 snd_dma2_size=4

if there is anything else i should try, i'll be more than happy to do
it. thanks.

--alex--

-- 
| I believe the moment is at hand when, by a paranoiac and active |
|  advance of the mind, it will be possible (simultaneously with  |
|  automatism and other passive states) to systematize confusion  |
|  and thus to help to discredit completely the world of reality. |

