Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 09-10-2007, 10:31 PM   #1
LQ Newbie
Registered: Nov 2006
Posts: 18

Rep: Reputation: 0
Mapping audio output with ALSA


I'm trying to configure a system with fully-working audio to allow the use of a VoIP soft phone (Twinkle.) I ran out tonight and purchased a standard headset which connects to the audio jacks on my CA0106 (Creative Labs SB Audigy Live! 24-bit) sound card. I plugged it in to my PC's front audio jacks, and with no further configuration my music was playing both over my speakers and my headset. Also, both the headset microphone and my in-monitor microphone were active.

What I want to do now is limit the headset to only interact with Twinkle. That is, I don't want my music playing through my headset, and I don't want my phone calls coming out of my floor speakers. In any event, I'm just dropping the in-monitor mic, so that's not a problem.

Is there a simple way to configure my system so that any output from Twinkle goes straight to a certain jack on my PC, i.e. Line Out?

Any feedback or even questions will be appreciated.

Old 09-11-2007, 02:47 AM   #2
Registered: Oct 2006
Posts: 460

Rep: Reputation: 31
just brainsorming so don't expect it to work.

there might be a remote chance of doing it if you can figure out a subdevice number for the line out.

if you can then you can build a hw plugin using you .asoundrc for the subdevice.

then reference that hw name in the command starting the phone software.

might need another hw plug for everything else.

there is also a plugin "Route" that might do it ?

there also might be a way to use a sound server to help. like jack, where you have the use of plugins and the ability to connect things ??

Its going to be a hard one to figure out.

good luck
Old 09-11-2007, 01:41 PM   #3
LQ Newbie
Registered: Nov 2006
Posts: 18

Original Poster
Rep: Reputation: 0
Thanks for your ideas, studioj. I Googled a few of your suggestions and finally came up with an old list post asking a question similar to mine. One of the responses involved invoking aplay -L from the alsa-utils package.

aplay -L lists all PCM devices, which can be used as the device name in any ALSA-aware program with the syntax plug:<PCM>. Listings for my card included default, front, rear, center_lfe, side, and surround40/41/50/51/71 for multichannel output. There was also iec958, my s/PDIF encoder. Similarly, arecord -L lists all capture devices.

[Edit: null is also an option, for those who wish to send their output to oblivion.]

After plugging my headset into the rear channel jack, both Twinkle and xine could be configured to use the device plug:rear to push their output through the headset.

I hope this helps anyone else who may be looking to do something similar. It's a lot simpler then mucking around with .asoundrc files or JACK all day.


Last edited by bezeek; 09-11-2007 at 01:43 PM.


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
mapping mount points to iostat output DotHQ Linux - Enterprise 1 04-18-2007 10:56 AM
No audio output - at all cudmore Linux - Software 1 09-16-2006 11:33 AM
kernel-2.6.3 compiled with alsa but xmms alsa output dont plays demmylls Linux - General 3 09-01-2006 04:32 AM
mapping a key to output txt while in x using term MadPenguin Linux - Software 0 06-22-2005 02:10 PM
no audio output pirozzi Red Hat 8 01-23-2004 11:05 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:11 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration