Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[alsa] devices in random 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
jabol
Apprentice
Apprentice


Joined: 05 Oct 2005
Posts: 269

PostPosted: Sat May 26, 2007 9:08 pm    Post subject: [alsa] devices in random order Reply with quote

Hi, I've got two audio devices (three, in the matter of fact, but one is unused/unconfigured). Now I've got the problem, that they seem to get loaded in random order. Most of the time device A (becomes hw:0) comes before device B (becomes hw:1), although device B has index 0 in /etc/modules.d/alsa and device A index 1. Nevertheless sometimes they swap (on boot). The funny thing is that this only happens on boot, not when I do:
Code:
/etc/init.d/alsasound restart
By now I get over it by adding this line to my /etc/conf.d/local.start. But this means alsa is somehow started two times and once stopped at boot.
Did you have such a problem? Do you know any less dirty way to get over it?

Greatings
AW
Back to top
View user's profile Send private message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Sun May 27, 2007 5:43 am    Post subject: Reply with quote

Strange I had that problem before using the "index" parameter but now that I do
my devices are "fixed" for good. Here is my /etc/modules.d/alsa in case it helps
you figure out what your problem is
Code:
# Alsa kernel modules' configuration file.

# 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 `modules-update' command.
## Read alsa-driver's INSTALL file in /usr/share/doc for more info.
##
##  ALSA portion
## alias snd-card-0 snd-interwave
## 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.

# --- BEGIN: Generated by ALSACONF, do not edit. ---
# --- ALSACONF version 1.0.11 ---
# --- END: Generated by ALSACONF, do not edit. ---

alias snd-card-0 snd-via82xx
alias sound-slot-0 snd-via82xx
alias snd-card-1 snd-cmipci
alias sound-slot-1 snd-cmipci

options snd-via82xx index=0
options snd-cmipci index=1

options snd cards_limit=2
Back to top
View user's profile Send private message
jabol
Apprentice
Apprentice


Joined: 05 Oct 2005
Posts: 269

PostPosted: Sun May 27, 2007 7:44 am    Post subject: Reply with quote

Well, it must be it. Didn't yet tested it but I believe it will do (what otherwise would the option index mean :? ).

Thanks very much :)
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