Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I dont know about Mandrake ( you are somewhat in the wrong part of the forum, but PLEASE don't double post), but usually the default card is the one "linked" to /dev/dsp and the default mixer is the one linked to /dev/mixer. So, on my system (I have 2 sound card).
this is my output of ls -l /dev/dsp* :
lrwxrwxrwx 1 root root 9 May 22 12:57 /dev/dsp -> /dev/sound/dsp1
( /dev/mixer is about the same ) :
lrwxrwxrwx 1 root root 17 May 22 14:12 mixer -> /dev/sound/mixer1
It depends on your distro, but usually just relinking the /dev/dsp link and /dev/mixer to other devices will tell your system to use another soundcard. Like, in my case, if I would like to use my second (it is first in fact, "1" mean the second) soundcard :
ln -sf /dev/sound/dsp /dev/dsp
ln -sf /dev/sound/mixer /dev/mixer
This will tell "ALSA" to use the first sound card as default one. Then you might want to ajust Artsd (Kde sound server) or whatever you are using (most modern distro don't use Alsa directly), there is always a cute wizy-wizard thingy to do that (in kde, it is located in Control Center/Sound System. Dont know about Gnome but it shouldn't be hard to find).
Well, on my system /dev/dsp and /dev/mixer aren't links (debian testing). I've got around the problem by blacklisting the driver I don't want to use (because otherwise that -- the onboard sound (snd_intel8x0) -- is the default). I just removed the blacklisting and restarted, and my sound card (snd_emu10k1) wasn't loaded; I got a probing error in dmesg. The module was loaded but no extra device was created (rmmod then modprobe didn't help, but rmmod both drivers then modprobe with emu10k1 first did create both). I guess the error on startup could be due to driver bugs, but any idea how to make dsp and mixer links rather than devices, or load the drivers in the other order? I'm using a self-built 2.6.8 kernel btw, which I will upgrade at some point.
Add the index value for each sound card in /etc/modules.conf or /etc/modprobe.conf. An index value of 0 will be the first card and index value of 1 will be the second card.
Lets say we have an intel on-board sound, Audiotrak Prodigy 7.1, and Turtlebeach Santa Cruz. We want the Turtlebeach Santa Cruz to be first card istead of second, the Audiotrak Prodigy 7.1 to be the second card instead third, and intel on-board sound to be the third sound card instead first. The code below is an example with out opening up the computer and moving the cards or changing symbolic links.
# ALSA and OSS
alias char-major-116 snd
alias char-major-14 soundcore
# Turtlebeach Santa Cruz
alias snd-card-0 snd-cs46xx
options snd-cs46xx index=0
# Audiotrak Prodigy 7.1
alias snd-card-1 snd-ice1724
options snd-ice1724 index=1
# intel on-board sound
alias snd-card-2 snd-intel8x0
options snd-intel8x0 index=2
# OSS emulation naming
alias sound-slot-0 snd-card-0
alias sound-slot-1 snd-card-1
alias sound-slot-2 snd-card-2
# 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
# Card 2
alias sound-service-1-0 snd-mixer-oss
alias sound-service-1-1 snd-seq-oss
alias sound-service-1-3 snd-pcm-oss
alias sound-service-1-8 snd-seq-oss
alias sound-service-1-12 snd-pcm-oss
# Card 3
alias sound-service-2-0 snd-mixer-oss
alias sound-service-2-1 snd-seq-oss
alias sound-service-2-3 snd-pcm-oss
alias sound-service-2-8 snd-seq-oss
alias sound-service-2-12 snd-pcm-oss
Phew! All you need to do is to restart the alsa script. To do that, login as su or root and type service alsa restart. The default sound device can be change in program's preferences.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.