LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (http://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   muti sound card linux (http://www.linuxquestions.org/questions/linux-hardware-18/muti-sound-card-linux-701355/)

ninja master 01-31-2009 09:56 PM

muti sound card linux
 
i am reporting that udev does not work. i have fixed the default sound card selection by removing my second sound card. i would like the second sound card to easily be configurable, and to stay as i am trying to use it as a monitor.

why is alsa default sound card configuration so effing difficult? this is the 4th time ive had problems with it. i have gotten it set to behave once, and past that its all been non functional. i mean i plug in the values of my sound card, vendor and such and it never works.

the alsa manuals are written by a crazy person. i mean really why should it be so hard to say "use sound card a as default" why 10 hour long nights of fighting to get something this simple done.

one page says something about loading the module order. one problem, i do not use modules, and my kernel has both sound cards built in. the other method is to use udev, and that method is always non functional. there is no clear cut way to lsusb and lspci to get the card id's then to plug them into udev.

comprookie2000 02-01-2009 10:00 AM

I always compile them as modules and let alsa control the sound cards. For my main sound card I use a proven winner.
Code:

opteron david # lsmod | grep snd
snd_seq_midi            8704  0
snd_pcm_oss            38304  0
snd_mixer_oss          16448  1 snd_pcm_oss
snd_seq_dummy          5124  0
snd_seq_oss            30720  0
snd_seq_midi_event      8576  2 snd_seq_midi,snd_seq_oss
snd_seq                50096  6 snd_seq_midi,snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_emu10k1x          18180  4
snd_ac97_codec        112072  1 snd_emu10k1x
snd_usb_audio          90992  1
snd_usb_lib            17792  1 snd_usb_audio
snd_pcm                72136  5 snd_pcm_oss,snd_emu10k1x,snd_ac97_codec,snd_usb_audio
snd_rawmidi            22240  3 snd_seq_midi,snd_emu10k1x,snd_usb_lib
snd_timer              21776  3 snd_seq,snd_pcm
snd_seq_device          8724  5 snd_seq_midi,snd_seq_dummy,snd_seq_oss,snd_seq,snd_rawmidi
ac97_bus                3904  1 snd_ac97_codec
snd_page_alloc        10768  2 snd_emu10k1x,snd_pcm
snd_hwdep              9672  1 snd_usb_audio

I use a usb mic for recording podcasts.
The default sound card is snd_emu10k1x, so for alsamixer it is;
Code:

alsamixer
For the usb mic;
Code:

alsamixer -c 1
/etc/modprobe.d/alsa
Code:

# OSS/Free portion - card #1
##  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.16 ---
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-emu10k1x
alias sound-slot-0 snd-emu10k1x
# --- END: Generated by ALSACONF, do not edit. ---
options snd-emu10k1x index=0
options snd-usb-audio index=1

Now if you could post the output from;
Code:

lspci | grep audio
I would not even want to play with udev for setting up sound. I am sure I would mess something up :)
On a side note some distros provide an alsa-driver package that compile the modules. I never use this. I use the modules from the kernel but do install alsa-tools alsa-utils, stuff like that. Not sure how slackware does it.

ninja master 02-02-2009 04:02 AM

my problem is making "alsamixer -c 1" run as "alsamixer"

i said forget it and black listed my other board.

ones a pci, the other would require lsusb =)


All times are GMT -5. The time now is 02:07 AM.