Configuring alsa for 2 soundcards
I need an .asoundrc file to use 2 soundcards. What I need is to use one soundcard to view movies and the other to listen to music. I have an Creative Soundblaster Live 24 Bit and an onboard audio card (nvidia soundstorm - Asus a7n8x-e Deluxe motherboard).
This is my current .asoundrc file(it doesn't work if that wasn't obvious):
############################
pcm.sound-blaster{
type hw
card 0
}
pcm.!default {
type plug
slave.pcm "audigy"
}
pcm.audigy {
type dmix
ipc_key 1234
slave {
pcm "hw:0,0"
period_time 84000
period_size 4096
buffer_size 81920
}
}
pcm.audigyls {
type plug
slave.pcm "surround51"
slave.channels 6
route_policy duplicate
}
pcm.51mix {
type route
slave.pcm surround51
slave.channels 6
# Front-left
ttable.0.0 1
# Front-right
ttable.0.1 1
# Center
ttable.0.2 1.0
ttable.1.3 1.0
# Rear-right
ttable.0.4 1.0
ttable.1.4 1.0
# Rear-left
ttable.0.5 1.0
ttable.1.5 1.0
}
ctl.sound-blaster {
type hw
card 0
}
pcm.nvidia{
type hw
card 1
}
pcm.nforce {
type dmix
ipc_key 5678
slave {
pcm "hw:0,0"
period_time 84000
period_size 4096
buffer_size 81920
}
}
pcm.soundstorm {
type plug
slave.pcm "surround51"
slave.channels 6
route_policy duplicate
}
pcm.51mix {
type route
slave.pcm surround51
slave.channels 6
# Front-left
ttable.0.0 1
# Front-right
ttable.0.1 1
# Center
ttable.0.2 1.0
ttable.1.3 1.0
# Rear-right
ttable.0.4 1.0
ttable.1.4 1.0
# Rear-left
ttable.0.5 1.0
ttable.1.5 1.0
}
ctl.nvidia {
type hw
card 1
}
#######################3
Last edited by RazvanZ; 10-30-2007 at 02:00 AM.
|