LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 01-31-2009, 08:56 PM   #1
ninja master
Member
 
Registered: May 2008
Distribution: gentoo amd64 xwrt
Posts: 407

Rep: Reputation: 30
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.
 
Old 02-01-2009, 09:00 AM   #2
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 54
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.

Last edited by comprookie2000; 02-01-2009 at 09:04 AM.
 
Old 02-02-2009, 03:02 AM   #3
ninja master
Member
 
Registered: May 2008
Distribution: gentoo amd64 xwrt
Posts: 407

Original Poster
Rep: Reputation: 30
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 =)

Last edited by ninja master; 02-02-2009 at 03:04 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
sound card (x-fi) stutters, additional questions about linux sound architecture emiddleton Linux - Hardware 4 02-16-2008 08:11 AM
Stacks in Muti-threaded program arunka Linux - General 1 06-08-2006 01:20 AM
no sound from sound blaster PCI sound card using mandrake-linux 10.1 box nila56 Linux - Hardware 2 05-29-2006 02:48 PM
question?, X + muti monitors + multi compuers over network SciYro Linux - General 2 06-16-2005 09:26 PM


All times are GMT -5. The time now is 12:59 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration