Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 100716 - udev does not honor /etc/modules.d/alsa
Summary: udev does not honor /etc/modules.d/alsa
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-29 07:59 UTC by Volker Hemmann
Modified: 2005-09-13 11:34 UTC (History)
0 users

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 Volker Hemmann 2005-07-29 07:59:14 UTC
Hi,    
    
I have several (three) soundcards in my box.    
One cmipci-driven card, one fm801 driven card and an onboard chip.    
    
With devfs, the cmipci-card is configured as the first card, like it should.    
    
With udev, the cmipci card is only card No2 or 3 .. and that gives problems.   
 
    
 cat /etc/modules.d/alsa   
alias char-major-116 snd   
alias char-major-14 soundcore   
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   
alias snd-card-0 snd-cmipci   
alias sound-slot-0 snd-cmipci   
  
#alias char-major-116 snd  
#alias char-major-14 soundcore  
#alias sound-service-1-0 snd-mixer-oss  
#alias sound-service-1-1 snd-seq-oss  
#alias sound-service-1-3 snd-pcm-oss  
#alias sound-service-1-8 snd-seq-oss  
#alias sound-service-1-12 snd-pcm-oss  
#alias snd-card-1 snd-fm801  
#alias sound-slot-1 snd-fm801  
# --- END: Generated by ALSACONF, do not edit. ---  
  
#alias char-major-116 snd  
#alias char-major-14 soundcore  
#alias sound-service-2-0 snd-mixer-oss  
#alias sound-service-2-1 snd-seq-oss  
#alias sound-service-2-3 snd-pcm-oss  
#alias sound-service-2-8 snd-seq-oss  
#alias sound-service-2-12 snd-pcm-oss  
#alias snd-card-2 snd-intel8x0  
#alias sound-slot-2 snd-intel8x0  
  

Reproducible: Always
Steps to Reproduce:
1.have several soundcards 
2.have one of them configured in /etc/modules.d/alsa 
3.use udev 
 
Actual Results:  
The fm801 card is the first card in the system. 

Expected Results:  
The cmipci-driven card should be the first card in the system 

emerge info 
Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r1, 2.6.12-gentoo-r6 
i686) 
================================================================= 
System uname: 2.6.12-gentoo-r6 i686 AMD Athlon(tm) XP 2000+ 
Gentoo Base System version 1.6.13 
ccache version 2.4 [enabled] 
dev-lang/python:     2.2.3-r5, 2.3.5, 2.4.1-r1 
sys-apps/sandbox:    1.2.11 
sys-devel/autoconf:  2.13, 2.59-r7 
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6 
sys-devel/binutils:  2.16.1 
sys-devel/libtool:   1.5.18-r1 
virtual/os-headers:  2.6.11-r2 
ACCEPT_KEYWORDS="x86 ~x86" 
AUTOCLEAN="yes" 
CBUILD="i686-pc-linux-gnu" 
CFLAGS="-march=athlon-xp -O2 -mmmx -m3dnow -msse -mfpmath=sse -ftracer 
-frename-registers -fweb -fomit-frame-pointer -pipe" 
CHOST="i686-pc-linux-gnu" 
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-march=athlon-xp -O2 -mmmx -m3dnow -msse -mfpmath=sse -ftracer 
-frename-registers -fweb -fomit-frame-pointer -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoconfig candy ccache distlocks notitles sandbox sfperms strict" 
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo http://gentoo.oregonstate.edu 
http://www.ibiblio.org/pub/Linux/distributions/gentoo" 
LC_ALL="de_DE@euro" 
LINGUAS="de" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" 
USE="x86 16bit 3dnow 3dnowext 3ds 7zip S3TC X X509 a52 aac aalib acpi alsa arts audiofile 
avi bash-completion berkdb bitmap-fonts bl bluetooth bzip2 bzlib cairo caps cdparanoia cdr 
cpudetection crypt css ctype curl dga dio divx4linux dnd dpms dvd dvdr dvdread editor edl 
emacs-w3 emboss encode exif expat fame fb fbcon ffmpeg fftw flac fortran freetype ftp 
gcc-libffi gd gdbm gif gimp glitz gnokii graphviz gs gtk gtk2 hal icq imagemagick imlib irmc jack 
jack-tmpfs java javascript jce joystick jp2 jpeg jpeg2k kde kdeenablefinal ladcca lesstif libg++ 
libwww lm_sensors lzw lzw-tiff mad maildir maps matroska mikmod mjpeg mmap mmx 
mmxext mng monkey motif mp3 mpeg mpi mplayer mule music mysql ncurses nls no-htdocs 
no-old-linux noamazon nocd nodrm noflagstrip nosendmail nowin nptl nvidia objc offensive ogg 
oggvorbis openal opengl oscar pam pam_console pam_timestamp pdflib perl physfs pic png 
posix povray python qemu-fast qt quicktime rar readline real reiserfs rogue samba scanner sdl 
sensord server sharedmem shorten slang sms sndfile snmp sockets sounds speex spell sqlite 
sse ssl stencil-buffer subtitles svg szip tcltk tcpd tga theora threads tiff timidity tools transcode 
truetype truetype-fonts type1-fonts unicode usb userlocales v4l v4l2 vanilla vcd videos vidix 
visualization vorbis win32codecs wmf wsconvert xanim xemacs xine xinerama xml2 xmlrpc 
xmms xosd xpm xrandr xscreensaver xv xvid xvmc yv12 zlib zvbi linguas_de userland_GNU 
kernel_linux elibc_glibc" 
Unset:  ASFLAGS, CTARGET, LANG, LDFLAGS, MAKEOPTS
Comment 1 Volker Hemmann 2005-08-01 12:30:51 UTC
Hi,   
   
one more information:   
   
when I restart alsasound after the boot, the correct card (the cmipci based one) is   
configured as the first and only one.  
 
But it is cumbersome, to log in as root after each boot, to restart alsa, only to have 
sound. 
Comment 2 Greg Kroah-Hartman (RETIRED) gentoo-dev 2005-09-13 11:26:09 UTC
udev does not care at all about /etc/modules.d/

You should write some custom udev rules to always name your devices properly,
the modules.d files do not apply at all.
Comment 3 Volker Hemmann 2005-09-13 11:34:42 UTC
Hi, 
hmm, I am a little bit puzzled now. 
 
Because the modules are load in the wrong order and alsasound does nothing about 
it, when started. 
 
Or is this an alsa bug? 
Should /etc/init.d/alsasound remove the sound-modules on start, so 
the /etc/modules.d/alsa setting 'get through' even when /etc/init.d/coldplug was 
started?