View previous topic :: View next topic |
Author |
Message |
jabol Apprentice
Joined: 05 Oct 2005 Posts: 269
|
Posted: Sat May 26, 2007 9:08 pm Post subject: [alsa] devices in random order |
|
|
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 |
|
|
fb l33t
Joined: 08 Dec 2003 Posts: 636 Location: New Zealand
|
Posted: Sun May 27, 2007 5:43 am Post subject: |
|
|
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 |
|
|
jabol Apprentice
Joined: 05 Oct 2005 Posts: 269
|
Posted: Sun May 27, 2007 7:44 am Post subject: |
|
|
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 |
|
|
|