LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Mapping audio output with ALSA (https://www.linuxquestions.org/questions/linux-software-2/mapping-audio-output-with-alsa-583768/)

bezeek 09-10-2007 10:31 PM

Mapping audio output with ALSA
 
Hi,

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.

Thanks,
Brian

studioj 09-11-2007 02:47 AM

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.

http://www.alsa-project.org/alsa-doc...m_plugins.html

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

bezeek 09-11-2007 01:41 PM

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. :D

Cheers,
Brian


All times are GMT -5. The time now is 09:49 AM.