I also have two cards, one integrated and a SB Live Value.
To tell alsa to use the SB card as default I created a .asoundrc file under my home directory with this content (it also allows you to play several sounds at the same time):
Code:
pcm.snd_card {
type hw
#Select card (like alsamixer -c0 or alsamixer -c1)
#card 0 = AC97 card
#card 0
#card 1 = SB Live Value
card 1
device 0
}
pcm.dmix {
type dmix
ipc_key 1024
slave.pcm "snd_card"
slave {
period_time 0
period_size 1024
buffer_size 8192
}
bindings {
0 0
1 1
}
}
pcm.dsnoop {
type dsnoop
ipc_key 2048
slave.pcm "snd_card"
bindings {
0 0
1 1
}
}
pcm.duplex {
type asym
playback.pcm "dmix"
capture.pcm "dsnoop"
}
pcm.!default {
type plug
slave.pcm "duplex"
}
pcm.dsp0 {
type plug
slave.pcm "duplex"
}
ctl.dsp0 {
type plug
slave.pcm "snd_card"
}
ctl.mixer0 {
type plug
slave.pcm "snd_card"
}
Oh and if you want to make it same for all users, I'm quoting this text from
http://www.alsa-project.org/alsa-doc...module=Generic (Same link that kodon suggested)
Quote:
Where does asoundrc live?
The asoundrc file is typically installed in a user's home directory
$HOME/.asoundrc
and is called from
/usr/share/alsa/alsa.conf
It is also possible to install a system wide configuration file as
/etc/asound.conf
When an alsa application starts both configuration files are read.
|