Skip to contentSkip to conversation

: (snd_)opl3sa2 (isa) doesn't work (fails on playback) on 2.6.x kernels

ALSA - driver 0000879 [email protected] 1 participant 1 message Aug 4, 2005

lore
Share & tools
lore
#0 lore raw

A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=879>
======================================================================
Reported By: iive
Assigned To:
======================================================================

Project:                    ALSA - driver
Issue ID:                   879
Category:                   ISA - opl3sa2
Reproducibility:            always
Severity:                   block
Priority:                   normal
Status:                     new
Distribution:               Slackware 10
Kernel Version:             all 2.6.x kernel version (current 2.6.10)
======================================================================
Date Submitted:             02-03-2005 03:42 CET
Last Modified:              08-04-2005 08:51 CEST

======================================================================
Summary: (snd_)opl3sa2 (isa) doesn't work (fails on playback)
on 2.6.x kernels
Description:
It doesn't work on all 2.6.x kernel I have tried (current 2.6.10) alsaconf doesn't detect the card as PnP, and fails to find it with bruteforce.

When module is loaded by hand it shows no error, but on aplay samle.wav I got
"ALSA /work/install/alsa-driver-1.0.5a/alsa-kernel/core/pcm_lib.c:2172:
playback
write error (DMA or IRQ trouble?"

on boot with 2.4.x kernel, everything magically works (alsaconf, aplay etc..)

the bug is reported 4 months ago on
http://bugzilla.kernel.org/show_bug.cgi?id=3117
that's why some versions are old (but I had tried alsa-1.0.8 before reposting this bug here)

======================================================================

----------------------------------------------------------------------
ahaning - 08-03-05 15:17
----------------------------------------------------------------------
After applying that patch to alsa-utils-1.0.9 and reinstalling alsa-driver-1.0.9b, alsaconf appears to be consistently detecting my card. I don't think the IRQ setting is quite correct and I'm currently only able to access the machine over SSH, so I can't tell whether or not it's working. Here's the modprobe.conf that is generated:

# --- BEGIN: Generated by ALSACONF, do not edit. ---
# --- ALSACONF version 1.0.9 ---
alias snd-card-0 snd-opl3sa2
alias sound-slot-0 snd-opl3sa2
options snd-opl3sa2 fm_port=-1 midi_port=-1 port=0x370 wss_port=0x530 dma1=1 dma2=0 irq=5
# --- END: Generated by ALSACONF, do not edit. ---

I don't think it's set to IRQ 5 and dma1 is usally set to 0 and dma2 to 1, but the IO ports look correct. I can load alsamixer and fiddle with the options. mplayer doesn't seem to be able to play (from what I can tell from an SSH window).

At least it's a small step.

----------------------------------------------------------------------
perex - 08-04-05 08:51
----------------------------------------------------------------------
You are trying configure legacy cards. Don't try that (select only detected PnP card in alsaconf). The option opl3sa2 line with manual resources should NOT be present in the generated configuration. Select only detected card (and try to remove the whole ALSACONF block from modprobe.conf).

Issue History
Date Modified Username Field Change
======================================================================

02-03-05 03:42 iive           New Issue                                    
02-03-05 03:42 iive           File Added: isa_opl3sa2.tgz                    
02-03-05 03:42 iive           Distribution              => Slackware 10    
02-03-05 03:42 iive           Kernel Version            => all 2.6.x kernel
version (current 2.6.10)
04-13-05 21:59 jdthood        Note Added: 0004478                          
04-14-05 00:02 iive           Note Added: 0004485                          
07-09-05 06:26 ahaning        Note Added: 0005438                          
07-09-05 06:38 ahaning        Note Edited: 0005438                         
07-09-05 11:13 jdthood        Note Added: 0005439                          
07-09-05 11:14 jdthood        Note Added: 0005440                          
07-28-05 05:17 ahaning        Note Added: 0005577                          
08-02-05 00:02 iive           Note Added: 0005599                          
08-02-05 03:00 ahaning        Note Added: 0005600                          
08-02-05 03:05 ahaning        Note Added: 0005601                          
08-02-05 03:05 ahaning        Note Deleted: 0005600                        
08-02-05 22:08 perex          File Added: alsaconf-isapnp-2.6.patch             
08-02-05 22:14 perex          Note Added: 0005607                          
08-02-05 22:16 perex          Note Added: 0005608                          
08-03-05 02:46 ahaning        Note Added: 0005610                          
08-03-05 11:42 perex          File Added: alsaconf                         
08-03-05 11:42 perex          Note Added: 0005615                          
08-03-05 13:42 ahaning        Note Added: 0005625                          
08-03-05 15:17 ahaning        Note Added: 0005631                          
08-04-05 08:51 perex          Note Added: 0005641                          

======================================================================

-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf