Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
alsa cards order - new HOTPLUG caused?
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: Sun Apr 23, 2006 9:51 am    Post subject: alsa cards order - new HOTPLUG caused? Reply with quote

problem:
Code:
 $ cat /proc/asound/cards
 0 [AudioPCI       ]: ENS1371 - Ensoniq AudioPCI
                      Ensoniq AudioPCI ENS1371 at 0x9c00, irq 11
 1 [U0x46d0x8a2    ]: USB-Audio - USB Device 0x46d:0x8a2
                      USB Device 0x46d:0x8a2 at usb-0000:02:07.1-1, full speed
 2 [CS46xx         ]: CS46xx - Sound Fusion CS46xx
                      Sound Fusion CS46xx at 0xe3128000/0xe3000000, irq 11
niv@bigone ~ $ su
Password:
bigone niv # /etc/init.d/alsasound restart
 * Storing ALSA Mixer Levels ...                                          [ ok ]
 * Unloading ALSA ...                                                     [ ok ]
 * Unloading ALSA modules ...                                             [ ok ]
 * Loading ALSA modules ...
 *   Loading: snd-card-0 ...                                              [ ok ]
 *   Loading: snd-card-1 ...                                              [ ok ]
 *   Loading: snd-card-2 ...                                              [ ok ]
 *   Loading: snd-card-3 ...
FATAL: Error inserting snd_bt_sco (/lib/modules/2.6.16-ck6-r1/misc/snd-bt-sco.ko
): Invalid module format                                                  [ !! ]
 *   Loading: snd-seq-midi ...                                            [ ok ]
 * Restoring Mixer Levels ...
/usr/sbin/alsactl: load_state:1250: Cannot find soundcard '2'...
 * Errors while restoring defaults, ignoring                              [ ok ]
bigone niv # cat /proc/asound/cards
 0 [CS46xx         ]: CS46xx - Sound Fusion CS46xx
                      Sound Fusion CS46xx at 0xe3128000/0xe3000000, irq 11
 1 [AudioPCI       ]: ENS1371 - Ensoniq AudioPCI
                      Ensoniq AudioPCI ENS1371 at 0x9c00, irq 11
 2 [U0x46d0x8a2    ]: USB-Audio - USB Device 0x46d:0x8a2
                      USB Device 0x46d:0x8a2 at usb-0000:02:07.1-1, full speed



starting after cold reset of the system , if I reset alsa , it chanages the order the sound cards are mapped.
I allready solved it by using the /etc/modules.d/alsa :
Code:

cat /etc/modules.d/alsa
# 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 $

alias snd-card-0 snd-cs46xx
alias snd-card-1 snd-ens1371
alias snd-card-2 snd-usb-audio
alias snd-card-3 snd-bt-sco


I also wrote udev rules to have the oss devices as /dev/snd/pcmC0D0 constant:

Code:

# cat /etc/udev/rules.d/07-local.rules

KERNEL=="pcm[CD0-9cp]*" ,BUS=="usb",SYSFS{idVendor}=="046d", SYSFS{idProduct}=="08a2", NAME="snd/pcmC2D0c" , SYMLINK="pcmC2D0c" , GROUP="audio"
KERNEL=="controlC[0-9]*",BUS=="usb",SYSFS{idVendor}=="046d", SYSFS{idProduct}=="08a2", NAME="sound/controlIC2" , SYMLINK="controlIC2" , GROUP="audio"
KERNEL=="audio[0-9]*",BUS=="usb",SYSFS{idVendor}=="046d", SYSFS{idProduct}=="08a2", NAME="sound/audio2" , SYMLINK="audio2" , GROUP="audio"
KERNEL=="dsp[0-9]*", BUS=="usb",SYSFS{idVendor}=="046d", SYSFS{idProduct}=="08a2", NAME="sound/dsp2" , SYMLINK="dsp2" , GROUP="audio"
KERNEL=="mixer[0-9]*",BUS=="usb",SYSFS{idVendor}=="046d", SYSFS{idProduct}=="08a2", NAME="sound/mixer2" , SYMLINK="mixer2" , GROUP="audio"


uname : 2.6.16-ck6-r1 #0 PREEMPT Sun Apr 23 00:01:33 IDT 2006 i686 Intel(R) Pentium(R) 4 CPU 1.80GHz GNU/Linux

running sys-apps/hotplug-20040923-r2

Should this be reported at the hotplug ML?
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