Skip to contentSkip to conversation

: ISA cards (opl3sa2 in particular) are not detected properly on 2.6 kernels

ALSA - utils 0001326 [email protected] 1 participant 1 message Aug 23, 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=1326>
======================================================================

Reported By:                ahaning
Assigned To:                perex
======================================================================
Project:                    ALSA - utils
Issue ID:                   1326
Category:                   alsaconf
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     feedback
======================================================================
Date Submitted:             08-10-2005 03:39 CEST
Last Modified:              08-23-2005 05:19 CEST

======================================================================
Summary: ISA cards (opl3sa2 in particular) are not detected
properly on 2.6 kernels
Description:
When brute-force detecting my OPL3SA2 card, the IRQ and DMA1/DMA2 settings are incorrectly detected by alsaconf from alsa-utils. For example, the default BIOS settings are IRQ=11, DMA1=0, DMA2=1, but alsaconf detects IRQ=5, DMA1=1, DMA2=0. No matter the BIOS settings, alsaconf always detects those settings (IRQ=5, DMA1=1, DMA2=0). If I set the BIOS settings to that, then the card will make sound (after touching the mixer while playing audio).

According to perex (author of the opl3sa2 driver):

"The alsaconf tries to gather free resources (irq/dma/ports) from the /proc filesystem. It might be extended to gather this information also from /sys filesystem."
======================================================================
Relationships ID Summary
----------------------------------------------------------------------
related to 0000879 (snd_)opl3sa2 (isa) doesn't work (fails...
======================================================================

----------------------------------------------------------------------
ahaning - 08-22-05 16:09
----------------------------------------------------------------------
Building alsa-driver-1.0.10rc1 failed with:

/usr/src/alsa-1.0.10rc1/alsa-driver-1.0.10rc1/acore/misc.c:487:40: macro
"create _workqueue"
passed 2 arguments, but takes just 1 /usr/src/alsa-1.0.10rc1/alsa-driver-1.0.10rc1/acore/misc.c: In function `snd_com
pat_create_workqueue2':
/usr/src/alsa-1.0.10rc1/alsa-driver-1.0.10rc1/acore/misc.c:487:
`create_workqueu e'
undeclared (first use in this function) /usr/src/alsa-1.0.10rc1/alsa-driver-1.0.10rc1/acore/misc.c:487: (Each undeclared
identifier is reported only once /usr/src/alsa-1.0.10rc1/alsa-driver-1.0.10rc1/acore/misc.c:487: for each
functio n it
appears in.)
make[4]: *** [/usr/src/alsa-1.0.10rc1/alsa-driver-1.0.10rc1/acore/misc.o]
Error 1
make[3]: *** [/usr/src/alsa-1.0.10rc1/alsa-driver-1.0.10rc1/acore] Error 2
make[2]: *** [_module_/usr/src/alsa-1.0.10rc1/alsa-driver-1.0.10rc1] Error 2
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.12'
make: *** [compile] Error 2

create_workqueue was called with (name, 0) so I edited out the 0. I don't know if this is correct, but it seems to allow the build to continue.

I'll edit this note with any later updates.

Update: The compile finished and I was able to run alsaconf. The card wasn't detected as PnP, so I let alsa bruteforce detect it. It said it was going to configure the modprobe.conf file, but when it was setting the mixer settings, it showed an error that then went away when the final screen was displayed. Trying to run alsamixer produces and error:

# alsamixer

alsamixer: function snd_ctl_open failed for default: No such device #

Playing a file in mplayer looks like it's playing normally, but I'm not at the machine so I can't say if it is actually working or not. I'm guessing it's not working.

Update2: From /etc/modprobe.conf:

options snd-opl3sa2 fm_port=-1 midi_port=-1 port=0x370 wss_port=0x530 isapnp=0 dma1=1 dma2=0 irq=5

dma1 and dma2 are still being incorrectly detected.

----------------------------------------------------------------------
ahaning - 08-23-05 05:19
----------------------------------------------------------------------
Woah!

I think I may have found my problem. I mounted /sys and my card looks like it was found!

So, so, so sorry.

Updates added here.

Issue History
Date Modified Username Field Change
======================================================================
08-10-05 03:39 ahaning New Issue
08-10-05 03:39 ahaning Distribution => Slackware 9.1 (but
it's not distribution-specific)

08-10-05 03:39 ahaning        Kernel Version            => 2.6.12.2        
08-10-05 13:26 perex          Status                   new => assigned     
08-10-05 13:26 perex          Assigned To               => perex           
08-10-05 13:26 perex          File Added: alsaconf                         
08-10-05 13:28 perex          Note Added: 0005747                          
08-10-05 13:29 perex          Project                  ALSA - driver => ALSA -
utils
08-10-05 13:30 perex          Relationship added       related to 0000879  
08-10-05 13:31 perex          Category                 1_OTHERS => alsaconf
08-10-05 14:55 ahaning        Note Added: 0005748                          
08-11-05 00:24 ahaning        Note Added: 0005752                          
08-11-05 23:59 ahaning        Note Added: 0005763                          
08-12-05 00:00 ahaning        Note Edited: 0005763                         
08-12-05 03:09 ahaning        Note Added: 0005764                          
08-12-05 09:29 perex          Note Added: 0005766                          
08-12-05 12:54 ahaning        Note Added: 0005767                          
08-12-05 15:11 perex          Summary                  ISAPNP cards (opl3sa2 in
particular) are not detected properly on 2.6 kernels => ISA cards (opl3sa2 in
particular) are not detected properly on 2.6 kernels
08-12-05 15:14 perex          Note Added: 0005768                          
08-12-05 15:35 tiwai          Note Added: 0005769                          
08-12-05 15:36 ahaning        Note Added: 0005770                          
08-12-05 15:44 tiwai          Note Added: 0005771                          
08-12-05 15:45 tiwai          Note Added: 0005772                          
08-12-05 15:56 perex          Note Added: 0005777                          
08-12-05 16:08 perex          Note Added: 0005778                          
08-12-05 16:44 ahaning        Note Added: 0005782                          
08-12-05 18:00 perex          File Added: opl3sa2.c.patch                    
08-12-05 18:03 perex          Note Added: 0005783                          
08-12-05 18:52 ahaning        Note Added: 0005787                          
08-13-05 15:10 perex          File Deleted: alsaconf                       
08-13-05 15:10 perex          File Added: alsaconf                         
08-13-05 15:11 perex          Note Added: 0005806                          
08-13-05 19:06 ahaning        Note Added: 0005808                          
08-13-05 19:08 ahaning        Note Edited: 0005808                         
08-15-05 13:53 perex          File Added: opl3sa2-2.c.patch                    
08-15-05 13:55 perex          Note Added: 0005817                          
08-18-05 12:51 ahaning        Note Added: 0005843                          
08-18-05 12:56 perex          Note Added: 0005844                          
08-18-05 16:36 ahaning        Note Added: 0005848                          
08-19-05 02:35 ahaning        Note Added: 0005861                          
08-19-05 03:02 ahaning        Note Added: 0005864                          
08-19-05 03:05 ahaning        Note Edited: 0005864                         
08-19-05 04:51 rlrevell       Note Added: 0005866                          
08-22-05 12:32 perex          Note Added: 0005893                          
08-22-05 12:32 perex          Status                   assigned => feedback
08-22-05 15:18 ahaning        Note Added: 0005897                          
08-22-05 16:07 ahaning        Note Edited: 0005897                         
08-22-05 16:09 ahaning        Note Edited: 0005897                         
08-23-05 05:19 ahaning        Note Added: 0005902                          

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

-------------------------------------------------------
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