Dual Soundcards in ALSA
In the older versions of slackware ( 9.0 and 10.0 ) I was able to get my sound system running ... usually without any fuss.
It seems since 10.1 though I haven't been able to get them working toghether. Following the instructions on the ALSA site I can get either my Plantronics DSP-500 OR my Createive Audigy Gamer (emu10k1) working standalone. The problem is when I try to get them working together. This used to work... but it doesn't seem to want to work anymore and I was hoping to get some input as to why? Here goes! Looks like soundcore is present. Code:
bash-3.00# modinfo soundcore Code:
./configure --with-cards=emu10k1 --with-cards=usb-audio --with-sequencer=yes;make;make install Code:
chmod a+rw /dev/dsp /dev/mixer /dev/sequencer /dev/midi Code:
modprobe snd-emu10k1;modprobe snd-usb-audio;modprobe snd-pcm-oss;modprobe snd-mixer-oss;modprobe snd-seq-oss Code:
bash-3.00# cat modules.conf |
**bump** anyone?
|
run "alsamixer" look for MM under any playback controls if so those are muted use "m M" and "<>"
to unmute. sorry cant think of anything else at moment to tired. hope that helped. |
Thanks for the tip. I'm very familiar with alsamixer and alsactl. I always unmute after install.
I can get sound working for either device if I compile the alsa drivers and libs seperately. The problem seems when I try to ./configure with --cards-emu10k1 and --cards-usb-audio at the same time. One of the devices will install and the other will not. Perhaps the syntax is wrong for the ./configure. When I do an lsmod either usb-audio OR emu10k1 are missing. In this particular case I compiled. With... ./configure --with-cards=usb-audio --with-cards=emu10k1 --with-sequencer=yes;make;make install The USB headset works perfectly however emu10k1 doesn't show up in lsmod. Ideas? |
Try:
Code:
/configure --with-cards=usb-audio;emu10k1 --with-sequencer=yes;make;make install |
Quote:
Thanks a-bunch! |
I suppose one last question on this matter is in order.
Now that I have 2 working soundcards. Is there an easy way to switch between then without rebooting? I made the Plantronics DSP-500 the primary. If I boot without it connected then the Audigy Gamer (emu10k1) defaults as the primary. But that's a hassle. Any ideas? And thanks everyone for the help =) |
Make an .asoundrc file in your home directory
There is an easy way to switch between sound cards without needing to reboot. This is the solution I've come up with, and so far it works quite well.
In order to make this work, first I needed to gather some information on how ALSA looks at my sound cards. To do this, I used Code:
aplay -l The out put I got from the command above looked something like this: Code:
**** List of PLAYBACK Hardware Devices **** Now, to switch between cards, simply create a file named .asoundrc in your home directory. .asoundrc is a file where you can create a customized configuration for ALSA. Since my integrated sound card is the default, I wanted to be able to switch to my Plantronics device without rebooting. Since ALSA refers to that device as card 1, I added the following to my .asoundrc file: Code:
pcm.!default { Code:
pcm.!default { Since I only need to change two numbers in one file to make this switch happen, I imagine it would be quite easy to create a simple script that toggles these numbers for you automatically. |
All times are GMT -5. The time now is 01:48 PM. |