Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] during startup alsa cards are in wrong order
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
nivw
Apprentice
Apprentice


Joined: 09 Nov 2005
Posts: 261

PostPosted: Mon Dec 10, 2007 10:45 am    Post subject: [SOLVED] during startup alsa cards are in wrong order Reply with quote

Hi all,
I notice on two pcs , that the card order according to /etc/modules.d/alsa is not obied
after the pc start the order is wrong, and when I run /etc/init.d/alsasound restart the order is restored.

how may I fix it?

/etc/modules.d/alsa:

Quote:

# Alsa 0.9.X kernel modules' configuration file.
# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-utils/files/alsa-modules.conf-rc,v 1.4 2004/11/16 01:31:22 eradicator Exp $

# ALSA portion
alias char-major-116 snd
alias snd-card-0 snd-ens1371
alias snd-card-1 snd-usb-audio
alias snd-card-2 snd-usb-audio
alias snd-card-3 snd-usb-audio
options snd-card-0 index=0
options snd-card-1 index=1
options snd-card-2 index=2
options snd-card-3 index=3
#options snd-usb-audio index=3,4 vid=0x0d8c,0x46d pid=0x0001,0x8c5
options snd-usb-audio index=1,2,3 vid=0xd8c,0x46d,0x69b pid=0x001,0x8a2,3008

options snd cards_limit=4

# OSS/Free portion
alias char-major-14 soundcore
alias sound-slot-0 snd-card-0
alias sound-slot-1 snd-card-1
alias sound-slot-2 snd-card-2
alias sound-slot-3 snd-card-3

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 sound-service-2-0 snd-mixer-oss
alias sound-service-2-3 snd-pcm-oss
alias sound-service-2-12 snd-pcm-oss
alias sound-service-3-0 snd-mixer-oss
alias sound-service-3-3 snd-pcm-oss
alias sound-service-3-12 snd-pcm-oss
#alias sound-service-4-0 snd-mixer-oss
#alias sound-service-4-3 snd-pcm-oss
#alias sound-service-4-12 snd-pcm-oss

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


Quote:
cat /etc/asound.conf
# CARD DEFINITIONS
pcm.onboard { type hw card AudioPCI }
ctl.onboard { type hw card AudioPCI }
pcm.advantage { type hw card Audio }
ctl.advantage { type hw card Audio }
pcm.webcam { type hw card U0x46d0x8a2 }
ctl.webcam { type hw card U0x46d0x8a2 }
#pcm.!default pcm.advantage
#ctl.!default ctl.advantage


Last edited by nivw on Mon Dec 10, 2007 12:16 pm; edited 1 time in total
Back to top
View user's profile Send private message
Dagger
Retired Dev
Retired Dev


Joined: 11 Jun 2003
Posts: 765
Location: UK

PostPosted: Mon Dec 10, 2007 12:08 pm    Post subject: Reply with quote

maybe because your sound modules are auto loaded by UDEV (that's why order is wrong). When you start alsosound you force them to load in the order you specified in the files. You can either amend udev settings, or blacklist alsa drivers and just use alsosound for loading them.
_________________
95% of all computer errors occur between chair and keyboard (TM)
Join the FSF as an Associate Member!
Post under CC license.
Back to top
View user's profile Send private message
nivw
Apprentice
Apprentice


Joined: 09 Nov 2005
Posts: 261

PostPosted: Mon Dec 10, 2007 12:16 pm    Post subject: Reply with quote

thanks a lot,
I did find a post suggesting to echo "snd_usb_audio" >>/etc/hotplug/blacklist
but I wanted to be sure.
I see that udev takes priority, over alsa's decision to allocate sound card order. this was specifically address in alsa mailing list , and I see it ws changed to current status.
Niv
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum