From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugtrack@alsa-project.org Subject: [ALSA - utils 0001326]: ISA cards (opl3sa2 in particular) are not detected properly on 2.6 kernels Date: Fri, 19 Aug 2005 04:51:44 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: Received: from bugtrack.alsa-project.org (gate.perex.cz [82.113.61.162]) by alsa.jcu.cz (ALSA's E-mail Delivery System) with ESMTP id 21E59207 for ; Fri, 19 Aug 2005 04:51:45 +0200 (MEST) Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org A NOTE has been added to this issue. ====================================================================== ====================================================================== Reported By: ahaning Assigned To: perex ====================================================================== Project: ALSA - utils Issue ID: 1326 Category: alsaconf Reproducibility: always Severity: major Priority: normal Status: assigned ====================================================================== Date Submitted: 08-10-2005 03:39 CEST Last Modified: 08-19-2005 04:51 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-19-05 03:05 ---------------------------------------------------------------------- Okay, I've completely uninstalled and reinstalled ALSA 1.0.9 with the above patches. After installing alsa-driver, it seemed to configure the sound card, as well, and I was able to open the mixer and, by touching the PCM mixer, play audio. I thought this was weird since I didn't have to run alsaconf or modprobe. When I ran the alsaconf that came with 1.0.9 (not the above version) and had it brute force detect the card (no PnP cards were detected), I get lots and lots of "Unknown symbol" errors in snd_opl3sa2, snd_opl3_lib, and snd_cs4231_lib. I also get an occasional non-fatal Oops as this runs. I'm going to have to kill the script and see if I can try your attached one. Edit: I've killed the script and when I try to run alsamixer, I get an Oops. I'm not sure how to capture it, though. Maybe netterm(?). ---------------------------------------------------------------------- rlrevell - 08-19-05 04:51 ---------------------------------------------------------------------- Since Oopses can lead to corrupt kernel memory, only the first Oops since booting the machine is relevant. You mentioned that the first Oops(es) were non-fatal so just copy the first one from the logs. Those Unknown symbol errors mean that you compiled ALSA against a different kernel version than you are running. Make sure your installed kernel source matches the running kernel version. 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 ====================================================================== ------------------------------------------------------- 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