LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-31-2010, 07:49 AM   #1
ale99
LQ Newbie
 
Registered: Nov 2008
Posts: 2

Rep: Reputation: 0
ALSA - Play Music on simultaneouse 2 sound cards


Dear Forum,
I am looking for suggestions for how can I play audio (Mythtv - Play Music) simultaneously on two sound cards using ALSA drivers.
I have two cards working well. One card is an onboard Intel cards, and the other card is a USB Audio card. Both cards are working well. I use the onboard Intel to output SPDIF to an amplified. The second USB card is bound to MPD service and it outputs an analog signal to a second amplified.

I'd like to have the following configuration:

Play to the default card with 5.1 passthrough, while the second card, connected to a second amplifier, plays an analog signal to the same audio played by Mythtv Play Music.

In other words, I need to mix somehow and play the same audio on both cards.
Here is the list of cards:
root@mythtv:~# aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
default:CARD=Intel
HDA Intel, ALC660-VD Analog
Default Audio Device
front:CARD=Intel,DEV=0
HDA Intel, ALC660-VD Analog
Front speakers
surround40:CARD=Intel,DEV=0
HDA Intel, ALC660-VD Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=Intel,DEV=0
HDA Intel, ALC660-VD Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Intel,DEV=0
HDA Intel, ALC660-VD Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Intel,DEV=0
HDA Intel, ALC660-VD Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Intel,DEV=0
HDA Intel, ALC660-VD Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Intel,DEV=0
HDA Intel, ALC660-VD Digital
IEC958 (S/PDIF) Digital Audio Output
default:CARD=default
USB Sound Device , USB Audio
Default Audio Device
front:CARD=default,DEV=0
USB Sound Device , USB Audio
Front speakers
surround40:CARD=default,DEV=0
USB Sound Device , USB Audio
4.0 Surround output to Front and Rear speakers
surround41:CARD=default,DEV=0
USB Sound Device , USB Audio
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=default,DEV=0
USB Sound Device , USB Audio
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=default,DEV=0
USB Sound Device , USB Audio
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=default,DEV=0
USB Sound Device , USB Audio
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=default,DEV=0
USB Sound Device , USB Audio
IEC958 (S/PDIF) Digital Audio Output
Any ideas?

Thanks,

Ale99
 
Old 06-01-2010, 12:00 AM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,361

Rep: Reputation: 2569Reputation: 2569Reputation: 2569Reputation: 2569Reputation: 2569Reputation: 2569Reputation: 2569Reputation: 2569Reputation: 2569Reputation: 2569Reputation: 2569
i did not think that ALSA could do this .
have you looked at pulse audio
 
Old 06-01-2010, 12:31 AM   #3
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
ALSA's wiki site has examples how to do this. The following has the example.

http://alsa.opensrc.org/index.php/Asoundrc
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
MPD/ALSA don't play music pastoreerrante Linux - Software 0 05-19-2010 08:41 AM
Isnt it xmms crappy to play sound, like detecting sound cards. Others are all better frenchn00b Linux - General 2 02-11-2008 06:51 PM
sound cards and alsa? ericb Linux - Hardware 3 09-07-2005 12:48 AM
alsa + 2 sound cards atrain Linux - Hardware 2 02-13-2005 11:51 AM
Problems getting sound to play under Mandrake w/2 sound cards HGeneAnthony Linux - Hardware 1 07-02-2004 02:19 PM

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

All times are GMT -5. The time now is 06:02 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration