Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 44940 - ALSA fails to autoload
Summary: ALSA fails to autoload
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Jeremy Huddleston (RETIRED)
URL:
Whiteboard:
Keywords:
: 47286 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-03-17 04:56 UTC by crusaderky
Modified: 2004-05-30 23:57 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description crusaderky 2004-03-17 04:56:11 UTC
I've got linux-2.6.4-gentoo with all alsa components built as modules, alsa-lib 0.9.8 and alsa-utils 0.9.8

I've got an Asus A7S-333 with integrated CMI8738 audio card.

this is my /etc/modules.d/alsa:

# Alsa 0.9.X kernel modules' configuration file.
# $Header: /home/cvsroot/gentoo-x86/media-sound/alsa-driver/files/alsa-modules.conf-rc,v 1.1 2002/12/21 06:31:52 agenkin Exp $

# ALSA portion
alias char-major-116 snd
# OSS/Free portion
alias char-major-14 soundcore

##
## IMPORTANT:
## You need to customise this section for your specific sound card(s)
## and then run `update-modules' command.
## Read alsa-driver's INSTALL file in /usr/share/doc for more info.
##
##  ALSA portion
alias snd-card-0 snd-cmipci
## alias snd-card-1 snd-ens1371
##  OSS/Free portion
alias sound-slot-0 snd-card-0
## alias sound-slot-1 snd-card-1
##

# OSS/Free portion - card #1
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
##  OSS/Free portion - card #2
## alias sound-service-1-0 snd-mixer-oss
## alias sound-service-1-3 snd-pcm-oss
## alias sound-service-1-12 snd-pcm-oss

alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss

# Set this to the correct number of cards.
options snd cards_limit=1

I've got alsasound running as a boot service (setting it as a default service doesn't change anything).

Randomly, alsa fails to initialize at boot, without giving any error message; simply applications fail to open it as the modules where unloaded (but they ARE loaded).

all tests are done with programs directly using alsa, not OSS emulation.
I've experienced this with all 2.6.x kernel, both vanilla and gentoo.

Workaround: /etc/init.d/alsasound restart
and it will work perfectly until next reboot.
Comment 1 Jeremy Huddleston (RETIRED) gentoo-dev 2004-03-17 11:51:47 UTC
try updating to >=alsa-{lib,utils,oss)-1.0.3
Comment 2 crusaderky 2004-03-17 12:13:59 UTC
done. I'll make you know if it continues happening.
Comment 3 crusaderky 2004-03-18 04:56:42 UTC
It still happens.
Comment 4 Jeremy Huddleston (RETIRED) gentoo-dev 2004-03-18 07:55:13 UTC
try changing
alias snd-card-0 snd-cmipci

to

alias snd-card-0 snd_cmipci

2.6.x names them with a _, and it's probably working for you with thte restart because hotplug loads the module...  but I thought that it worked with the old names for backwards compatibility...  let me know if that fixes it, and I'll update the template...
Comment 5 Jeremy Huddleston (RETIRED) gentoo-dev 2004-03-24 20:35:53 UTC
I really don't like the "randomly" bit... can you try to figure out a deterministic way to cause this to happen?

Also, try using media-sound/alsa-driver-1.0.3 instead of the in-kernel drivers... maybe that'll fix it up...
Comment 6 crusaderky 2004-03-25 02:50:42 UTC
1)I switch the power on ;)
2)login as normal user, always the same user
3)startx
4)sometimes arts says "no alsa found", more often everything goes well.

However, since I changed modules.d/alsa as you said, it hasn't happened anymore.

I'll make you know if it happens again. If I don't post in a couple of weeks feel free to set it as "FIXED".
Comment 7 crusaderky 2004-03-31 07:13:08 UTC
It has NOT been fixed. It happened again today :(
Comment 8 Jeremy Huddleston (RETIRED) gentoo-dev 2004-03-31 09:16:46 UTC
God, I have no clue then =(

This smells like an upstream issue, so could you make a bug on the alsa bug tracker and provide a link to it here.

Sorry =(
Comment 9 Jeremy Huddleston (RETIRED) gentoo-dev 2004-04-10 08:24:52 UTC
is this the same bug as bug #44940 perhaps?
Comment 10 Jeremy Huddleston (RETIRED) gentoo-dev 2004-04-10 08:25:57 UTC
*** Bug 47286 has been marked as a duplicate of this bug. ***
Comment 11 Jeremy Huddleston (RETIRED) gentoo-dev 2004-04-10 10:07:55 UTC
I meant to say is it the same as bug #39345
Comment 12 crusaderky 2004-04-28 10:40:52 UTC
No, bug #39345 is a completely different one.
I get no error messages and it happens randomly (quite often).
Comment 13 Jeremy Huddleston (RETIRED) gentoo-dev 2004-04-28 10:50:33 UTC
I really don't know what to say here, then... you're going to have to ho upstream and file a bug on alsa-project.org's bug tracker...  please report the bug number here so i can track it.
Comment 14 Jeremy Huddleston (RETIRED) gentoo-dev 2004-05-02 18:16:27 UTC
I'm going to close this as it is an upstream bug, please report the bug # of the upstream bug and reopen when a resolution is found.
Comment 15 crusaderky 2004-05-11 07:32:03 UTC
I've changed audio card and mounted a Live! 512; I'll make you know if it still happens.
Comment 16 crusaderky 2004-05-27 05:45:10 UTC
Still happens with my new audio card (the old one has been completely disabled using a BIOS switch). I really don't think that it's upstream since it happens with a very-well supported card IMHO....
Comment 17 Jeremy Huddleston (RETIRED) gentoo-dev 2004-05-30 23:57:25 UTC
i really have no clue what is going on here... you'll have better luck working with a kernel driver hacker upstream, sorry =(