LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 10-28-2007, 08:40 AM   #1
RazvanZ
Member
 
Registered: Apr 2004
Location: Romania
Distribution: Gentoo
Posts: 63

Rep: Reputation: 15
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.
 
Old 10-30-2007, 04:14 AM   #2
RazvanZ
Member
 
Registered: Apr 2004
Location: Romania
Distribution: Gentoo
Posts: 63

Original Poster
Rep: Reputation: 15
I think the problem is with the ttable configuration, both cards have the same configuration and when I use the one for the nforce I still hear music from the Creative card, also I have to change the names of the pcms for the nvidia card to differ from the creative card. Can someone help me with the ttable configuration.... I can't find the explanations.
 
Old 10-31-2007, 03:52 AM   #3
RazvanZ
Member
 
Registered: Apr 2004
Location: Romania
Distribution: Gentoo
Posts: 63

Original Poster
Rep: Reputation: 15
Can't anyone help with an .asoundrc config file that works?
 
  


Reply



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
Dual Soundcards in ALSA jp_ Slackware 7 12-11-2006 03:31 PM
[ALSA]: no soundcards found... G00fy Linux - Hardware 4 05-22-2006 12:18 AM
setting up two soundcards with alsa. shorty_boy Linux - Software 0 06-29-2005 07:22 PM
Configure Two soundcards, ALSA...How? Outabux Debian 0 12-15-2004 12:48 PM
Two soundcards and ALSA josiah Linux - Hardware 0 09-11-2004 02:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:08 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration