Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 51998 - alsa-utils 1.0.4: /etc/init.d/alsasound fails to discover snd-intel8x0 card on start
Summary: alsa-utils 1.0.4: /etc/init.d/alsasound fails to discover snd-intel8x0 card o...
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Jeremy Huddleston (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-25 05:05 UTC by Dead Schorsch
Modified: 2005-10-06 08:35 UTC (History)
3 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 Dead Schorsch 2004-05-25 05:05:26 UTC
For some reason, which must be related to the way the alsasound recognizes configured sound cards, /etc/init.d/alsasound will load all configured sound driver modules, except for the intel-8x0 driver, which is needed for my single sound card based laptop.

It must be releated to this line in alsasound:

DRIVERS="$(modprobe -c | grep -E "^[[:space:]]*alias[[:space:]]+snd-card-[[:digit:]]" | awk '{print $3}')"

The operation to assign DRIVERS does not result in any output, so that DRIVERS is empty. 

Environment is kernel-2.6.6 with sound support enabled, but using separate alsa-driver package.

Reproducible: Always
Steps to Reproduce:
1. /etc/init.d/alsasound start
2.
3.

Actual Results:  
DLD8-FBLK31J root # /etc/init.d/alsasound start
 * Loading ALSA drivers...
 * Using ALSA OSS emulation
 * Loading: snd-seq-oss
 * Loading: snd-mixer-oss
 * Loading: snd-pcm-oss
 * Running card-dependent scripts
 * Restoring Mixer Levels
 * No mixer config in /etc/asound.state, you have to unmute your card!         
                                 [ !! ] 

Expected Results:  
 * Loading ALSA drivers...
 * Using ALSA OSS emulation
 * Loading: snd-seq-oss
 * Loading: snd-mixer-oss
 * Loading: snd-pcm-oss
 * Loading: snd-intel8x0
 * Running card-dependent scripts
 * Restoring Mixer Levels

**** /etc/modules.d/alsa ****
DLD8-FBLK31J root # cat /etc/modules.d/alsa
# Alsa 0.9.X kernel modules' configuration file.
# $Header:
/home/cvsroot/gentoo-x86/media-sound/alsa-utils/files/alsa-modules.conf-rc,v 1.1
2003/08/05 21:07:55 johnm 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-intel8x0
## 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


**** emerge info ****
DLD8-FBLK31J root # emerge info
Portage 2.0.50-r6 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3_pre20040420-r0, 2.6.6)
=================================================================
System uname: 2.6.6 i686 Intel(R) Pentium(R) M processor 1600MHz
Gentoo Base System version 1.4.15
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox userpriv"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acpi acpi4linux aim alsa antlr apache2 apm avi berkdb bluetooth bonobo
cddb cdr chroot crypt cups devfs26 doc dvd encode esd ethereal evo fam
foomaticdb gdbm gif gimp gimpprint glade gnome gpm gstreamer gtk gtk2 gtkhtml
ieee1394 imagemagick imlib irda java jpeg ldap libg++ libwww mad mbox mikmod mmx
motif mozilla mpeg mpeg4 msn ncurses nls odbc oggvorbis opengl pam pcmcia pda
pdflib perl png postgres ppds python quicktime readline samba scanner sdl slang
sox spell sse ssl svga tcltk tcpd truetype usb vanilla x86 xml2 xmms xv zlib"
Comment 1 Brian Harring (RETIRED) gentoo-dev 2004-05-26 13:13:39 UTC
taking ownership, since I'm experiencing this currently :)
Comment 2 Christoph Brill (egore) (RESIGNED) 2004-05-28 09:01:24 UTC
Having the same problem here on 2 pc's:
1.) snd-intel8x0, alsa 1.0.3, gentoo-dev-sources-2.6.5-r1
2.) snd-via82xx, alsa 1.0.3, gentoo-dev-sources-2.6.5-r1

I read something in kernel (or alsa) changelog that they made changes to alsa's AC97 handling, so i think this is releated, since both use AC97.
Comment 3 Christoph Brill (egore) (RESIGNED) 2004-05-28 09:28:06 UTC
i tried using 2.6.4 and got the same result :(
Comment 4 Alin Năstac (RETIRED) gentoo-dev 2004-06-06 22:18:57 UTC
The modprobe installed by sys-apps/module-init-tools doesn't work anymore in the way the old modprobe used to. 

The solution of this problem is replacing "modprobe -c" with "cat /etc/modules.conf".
Comment 5 Eric Shattow 2004-08-26 14:33:15 UTC
I boot my computer with a usb-midi keyboard device attached.  that module somehow is auto-loaded before the driver for my 1010lt delta card (ice1712).  the script then detects my usb-midi device as a *sound card* and says "Alsa Detected" forgoing any loading of the driver i need for my real sound device.

there needs to be better logic to detect if all the devices configured in the config files are actually with loaded drivers or not.
Comment 6 Nikolaus Filus 2004-10-08 02:56:40 UTC
Hi,

have just discovered similar situation, but ...
was wondering, why mixer state wasn't loaded at startup, so started to dig around.
It is a newly installed system and sound worked (with no coniguration from me) and this was a trap, as
  1. my soundcard was NOT configured, but detected by pci hotplug and the module was correctly loaded
  2. after entering alias snd-card-0 snd-intel8x0 AND running update-modules "modprobe -c" worked as expected!

Solution: 
either force proper configuration via alias OR depend on hotplug (what do do after alsasound restart?)

Nikolaus
Comment 7 Jeremy Huddleston (RETIRED) gentoo-dev 2004-10-08 10:43:04 UTC
Is alsasound in your boot runlevel?  Did youu run modules-update after editing /etc/modules.d/alsa?
Comment 8 Jeremy Huddleston (RETIRED) gentoo-dev 2004-10-29 18:45:51 UTC
the init script I just added to portage works with a larger range of configurations... please try it out.
Comment 9 Dead Schorsch 2005-10-06 08:35:55 UTC
Working.