From: bugtrack@alsa-project.org Subject: [ALSA - driver 0000752]: ALSA > 1.0.5a does not load, failed with error -16 Date: Tue, 22 Mar 2005 13:42:06 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Received: from bugtrack.alsa-project.org (gate.perex.cz [82.113.61.162]) by alsa.alsa-project.org (ALSA's E-mail Delivery System) with ESMTP id D859228B for ; Tue, 22 Mar 2005 13:42:06 +0100 (MET) 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: Q3Man Assigned To: fmoraes ====================================================================== Project: ALSA - driver Issue ID: 752 Category: PCI - emu10k1x Reproducibility: always Severity: major Priority: normal Status: assigned Distribution: Gentoo Kernel Version: 2.6.9-gentoo-r9 ====================================================================== Date Submitted: 12-28-2004 05:12 CET Last Modified: 03-22-2005 13:42 CET ====================================================================== Summary: ALSA > 1.0.5a does not load, failed with error -16 Description: I'm having some problems with alsa since 1.0.6a. Previously I just had the later versions masked, but now various kde packages require the latest alsa, so I'm having to tackle it now. ALSA seems to start normally, however I get this error in dmesg: EMU10K1X: probe of 0000:00:09.0 failed with error -16. I also get this error when running alsamixer: alsamixer: function snd_ctl_open failed for default: No such device And similar ones in other alsa programs. Again, 1.0.5a runs fine, 1.0.6a and above do not. I've taken a look at the code and it seems that the error is vaguely interrupt related, but I could not find the code that produces error -16. I've swapped interrupts around and disabled non-essential devices (usb, serial, parallel ports, removed network cards and sound cards - although that last one proved slightly less than helpful :) I've changed from having my bios manage irq's to having the OS handle them with zero success. I've looked around for that error code in google for the last few weeks - since the release of 1.0.6a with limited success. Nothing relevant to my situation. Important configs and error messages: $ lspci -v |grep audio -A4 0000:00:09.0 Multimedia audio controller: Creative Labs [SB Live! Value] EMU10k1X Subsystem: Creative Labs: Unknown device 1003 Flags: bus master, medium devsel, latency 32, IRQ 12 I/O ports at d000 Capabilities: [dc] Power Management version 2 (It is an actual EMU10k1X and not the Dell bastardized version) $ /etc/init.d/alsasound start; dmesg |tail -n1 * Loading ALSA drivers... * Using ALSA OSS emulation * Loading: snd-mixer-oss * Loading: snd-pcm-oss * Loading: snd-seq-oss * Running card-dependent scripts * Restoring Mixer Levels [ ok ] EMU10K1X: probe of 0000:00:09.0 failed with error -16 $ uname -a Linux tobin1 2.6.9-gentoo-r9 https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1 Mon Dec 27 16:06:33 PST 2004 i686 AMD Athlon(tm) XP 2500+ AuthenticAMD GNU/Linux If anyone needs any other config information, please let me know. Again, it works perfectly fine in 1.0.5a, the problems only appear in later versions. ====================================================================== ---------------------------------------------------------------------- Q3Man - 03-21-05 01:40 ---------------------------------------------------------------------- With the crashing section commented out, the /proc/asound/card0/codec97#0 files are: #cat ac97#0-0 0-0/0: eMicro id 9 Capabilities : DAC resolution : 20-bit ADC resolution : 18-bit 3D enhancement : No 3D Stereo Enhancement Current setup Mic gain : +0dB [+0dB] POP path : pre 3D Sim. stereo : off 3D enhancement : off Loudness : off Mono output : MIX Mic select : Mic1 ADC/DAC loopback : off Extended ID : codec=0 rev=1 AMAP LDAC SDAC CDAC DSA=0 SPDIF Extended status : LDAC SDAC CDAC SPDIF=10/11 SPDIF Control : Consumer PCM Copyright Category=0x22 Generation=1 Rate=48kHz #cat ac97#0-0+regs 0:00 = 0180 0:02 = 0909 0:04 = 8808 0:06 = 0009 0:08 = 0000 0:0a = 801e 0:0c = 801f 0:0e = 801f 0:10 = 1f1f 0:12 = 1f1f 0:14 = 9f1f 0:16 = 9f1f 0:18 = 0808 0:1a = 0000 0:1c = 0000 0:1e = 0000 0:20 = 0000 0:22 = 0000 0:24 = 0000 0:26 = 000f 0:28 = 07c4 0:2a = 01f0 0:2c = 0000 0:2e = 0000 0:30 = 0000 0:32 = 0000 0:34 = 0000 0:36 = 1f80 0:38 = 0b8b 0:3a = 2a20 0:3c = 0000 0:3e = 0000 0:40 = 0000 0:42 = 0000 0:44 = 0000 0:46 = 0000 0:48 = 0000 0:4a = 0000 0:4c = 0000 0:4e = 0000 0:50 = 0000 0:52 = 0000 0:54 = 0000 0:56 = 0000 0:58 = 0000 0:5a = 0000 0:5c = 0000 0:5e = 0000 0:60 = 005b 0:62 = 0000 0:64 = 0000 0:66 = 0000 0:68 = 0000 0:6a = 0000 0:6c = 0000 0:6e = 0000 0:70 = 0000 0:72 = 0000 0:74 = 0000 0:76 = 0000 0:78 = 0073 0:7a = 2000 0:7c = 454d 0:7e = 4309 ---------------------------------------------------------------------- fmoraes - 03-22-05 13:42 ---------------------------------------------------------------------- Ok, can you try the changes one more time. It should not lock up your system. Just make sure you stop ALSA before installing the new version. (on my system, I can just run "service alsasound stop" and then use rmmod snd_page_malloc to remove the last alsa module. Then, after compiling, use make install and try to modprobe the module. This will insure you don't run into mixed version problems. This is what the new version will look like. Remove the old mixer function and replace it with this: static int remove_ctl(snd_card_t *card, const char *name) { snd_ctl_elem_id_t id; memset(&id, 0, sizeof(id)); strcpy(id.name, name); id.iface = SNDRV_CTL_ELEM_IFACE_MIXER; return snd_ctl_remove_id(card, &id); } static snd_kcontrol_t *ctl_find(snd_card_t *card, const char *name) { snd_ctl_elem_id_t sid; memset(&sid, 0, sizeof(sid)); /* FIXME: strcpy is bad. */ strcpy(sid.name, name); sid.iface = SNDRV_CTL_ELEM_IFACE_MIXER; return snd_ctl_find_id(card, &sid); } static int __devinit snd_emu10k1x_mixer(emu10k1x_t *emu) { int err; snd_kcontrol_t *kctl; snd_card_t *card = emu->card; if ((kctl = snd_ctl_new1(&snd_emu10k1x_spdif_mask_control, emu)) == NULL) return -ENOMEM; if ((err = snd_ctl_add(card, kctl))) return err; if ((kctl = snd_ctl_new1(&snd_emu10k1x_shared_spdif, emu)) == NULL) return -ENOMEM; if ((err = snd_ctl_add(card, kctl))) return err; /* Fix to ALSA Bug 752 */ if ((kctl = ctl_find(card, SNDRV_CTL_NAME_IEC958("",PLAYBACK,DEFAULT))) != NULL) { /* already defined by ac97, remove it */ /* FIXME: or do we need both controls? */ remove_ctl(card, SNDRV_CTL_NAME_IEC958("",PLAYBACK,DEFAULT)); } if ((kctl = snd_ctl_new1(&snd_emu10k1x_spdif_control, emu)) == NULL) return -ENOMEM; if ((err = snd_ctl_add(card, kctl))) return err; return 0; } Issue History Date Modified Username Field Change ====================================================================== 12-28-04 05:12 Q3Man New Issue 12-28-04 05:12 Q3Man File Added: einfo 12-28-04 05:12 Q3Man Distribution => Gentoo 12-28-04 05:12 Q3Man Kernel Version => 2.6.9-gentoo-r9 12-28-04 05:22 Q3Man Issue Monitored: Q3Man 01-03-05 12:10 tiwai Note Added: 0003054 01-03-05 12:39 eradicator Issue Monitored: eradicator 01-03-05 17:30 Q3Man Note Added: 0003071 01-16-05 14:54 fmoraes Note Added: 0003216 01-18-05 00:44 Q3Man Note Added: 0003240 01-20-05 02:23 Q3Man Note Added: 0003322 01-20-05 19:12 tiwai Note Added: 0003332 01-21-05 05:11 Q3Man Note Added: 0003337 01-21-05 11:14 tiwai Note Added: 0003341 01-22-05 23:24 fmoraes Note Added: 0003382 03-09-05 02:57 fmoraes Note Added: 0003821 03-15-05 17:34 Q3Man Note Added: 0003916 03-15-05 22:32 Q3Man Note Added: 0003918 03-16-05 02:09 fmoraes Note Added: 0003927 03-16-05 03:32 Q3Man Note Added: 0003930 03-16-05 04:06 fmoraes Note Added: 0003931 03-16-05 04:53 Q3Man Note Added: 0003932 03-16-05 05:19 Q3Man Note Added: 0003933 03-17-05 01:45 fmoraes Note Added: 0003976 03-17-05 03:20 Q3Man Note Added: 0003977 03-18-05 02:07 fmoraes Note Added: 0003988 03-18-05 02:43 Q3Man Note Added: 0003989 03-18-05 03:41 Q3Man Note Added: 0003990 03-18-05 21:17 fmoraes Note Added: 0004005 03-18-05 23:48 Q3Man Note Added: 0004007 03-19-05 21:00 fmoraes Note Added: 0004069 03-20-05 08:00 Q3Man Note Added: 0004073 03-20-05 08:17 Q3Man Note Added: 0004074 03-20-05 15:26 fmoraes Note Added: 0004091 03-20-05 19:19 Q3Man Note Added: 0004097 03-21-05 00:12 fmoraes Note Added: 0004107 03-21-05 01:16 Q3Man Note Added: 0004108 03-21-05 01:36 Q3Man Note Added: 0004109 03-21-05 01:40 Q3Man Note Added: 0004110 03-22-05 13:42 fmoraes Note Added: 0004124 ====================================================================== ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click