Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ALSA SUXORS and OSS ROCKS (OPL3SA2)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
anoland
Tux's lil' helper
Tux's lil' helper


Joined: 27 May 2003
Posts: 86

PostPosted: Sat Jun 07, 2003 8:09 pm    Post subject: ALSA SUXORS and OSS ROCKS (OPL3SA2) Reply with quote

:twisted:
I just spent several weeks getting the Yamaha OPL3SAx sound card on my laptop working. I've had it working just fine in the past using using the OSS drivers in the kernel, but I needed Windoze for school projects. When I decided to put Linux back on this baby I hadn't kept up with the development of the sound drivers. I also hadn't kept any notes on how I set up sound from before, so I was basically starting from scratch. I had read that ALSA is making it's way into 2.6 so I figured since I had to relearn anyway, may as well learn ALSA. Once I got it installed I found out that the OPL3SA2 chip is funky in the way that there are the standard mixer channels: PCM, synth, etc, and another separated mixer with the main vol, bass, treble and what I'm guessing is what Windoze calls the "Zoomed video" channel. (To make things worse, even though the card is ISA, isapnp cant see it.) For some reason ALSA couldn't control that secondary mixer. Needless to say that sound under ALSA sucked. It sounded like it was in a tin can. (Not just a tin can, but a tin can in a laptop with 3" speakers.) Even the line out to the stereo sounded bad. The one good thing I got out of this fiasco was the proper settings for the sound card. So I ripped out the ALSA drivers, recompiled my kernel to use OSS, edited lilo.conf[*], and viola, finally, properly working sound; for a laptop that is.

If anybody is having problems with the OPL3SA2 sound cards found in Gateway Solo 9100 or Toshiba Tecra 8000 or IBM ThinkPad 770 send me a message or reply here and I will try to help.

[*] I prefer non-modular kernels as much as possible, so its all compiled in and parameters are passed at boot.

The proper settings can be found in /usr/src/linux/Documentation/sound/OPL3SA2
and
http://sdb.suselinux.hu/en/sdb/html/laptop_daten_toshiba_tecra-8000.html

Next step is to patch the kernel with the latest Trident FB...

Hasta.


Last edited by anoland on Sun Jun 15, 2003 2:18 pm; edited 1 time in total
Back to top
View user's profile Send private message
YosemiteSammy
n00b
n00b


Joined: 14 Jun 2003
Posts: 2

PostPosted: Sun Jun 15, 2003 3:50 am    Post subject: ALSA OPL3SA2 ISA NONPNP wav/mp3 echo / regeneration effect Reply with quote

anoland wrote:

anoland said some stuff here:....



I have a Gateway Solo 9100 E7.9 series laptop...

Yamaha OPL3SA2 soundcard ISA NONPNP

ALSA and OSS settings:

Code:

snowcrash root # cat /etc/modules.d/alsa
alias char-major-116 snd
alias char-major-14 soundcore
 
 
alias sound-slot-0 snd-card-0
 
 
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
 
 
alias /dev/mixer snd-mixer-oss
alias /dev/sound/dsp snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss
 
 
options snd-opl3sa2 dma1=3 dma2=0 enable=1 fm_port=0x388 index=0 irq=11 isapnp=0 midi_port=0x330 opl3sa3_ymode=3 port=0x370 sb_port=0x220 wss_port=0x530
options snd cards_limit=1

snowcrash root # cat /etc/conf.d/local.start
# /etc/conf.d/local.start:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/conf.d/local.start,v 1.4 2002/11/18 19:39:22 azarah Exp $
 
# This is a good place to load any misc.
# programs on startup ( 1>&2 )

/sbin/modprobe snd-opl3sa2
 


I set my card in the laptop BIOS to use IRQ11 dma1=3 dma2=0, turned off serial and parallel ports.

with other DMA2 settings I was getting weird echo and regeneration effects when playing WAV or mp3.

hope this helps somebody in the future...


YosemiteSammy


:D
Back to top
View user's profile Send private message
paulisdead
Guru
Guru


Joined: 10 Apr 2002
Posts: 510
Location: Seattle, WA

PostPosted: Sun Jun 15, 2003 5:52 am    Post subject: Reply with quote

The topic is really flame war material, there.

But I do agree, alsa NEVER works right for me. It always has to screw something up with games, only 1 speaker working, too fast audio playback, or permission errors when the permissions are definitely set correclty.

I've tried it on an SB Live and nforce2 onboard audio, and I really would like to have it working for 4.1 sound, but ALSA seems to hate me. I think I'll stick with good old OSS since it always works right off the bat, no problems, very little configuration involved outside the right kernel modules/options.

It does kind of annoy me that ALSA will be the standard for 2.6, since I've never had it working to my satisfaction, but hopefully it will work right by then.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum