Search:  
Gentoo Wiki

TIP_Send_audio_from_one_card_to_the_other

Contents

Introduction

I have an onboard sound card and an external usb sound card (well its actually more like a thumb drive). I have the speaker connected to the onboard sound card (card0) and the headphones to the external card (card 2). I also have a TV card which audio out is connected with a wire to the onboard line-in. As the audio goes in to the card that is connected to the speakers, I can unmute line-in and hear TV. Here is how to have the audio delivered to the headphones which are connected to the other sound card.

Please fix the title as you see fit

Requirements

Please follow the Jack guide.

Main course

You need to run jackd for each sound card, then you may use jack_diplomat. But you may also use two different cards like this:

jackd --realtime --driver=alsa -P hw:2 -C hw:0 &

Then use qjackctl to test the conections

I use this script:

#!/bin/bash
jackd --realtime --driver=alsa -P hw:2 -C hw:0 &
wait 10
jack_connect alsa_pcm:capture_1 alsa_pcm:playback_1
jack_connect alsa_pcm:capture_1 alsa_pcm:playback_2

Supplements

Peter over the Jackit ML advised that one can use alsa to see sevrel sound cards as one using the .asoundrc file like here: Multiple ICE1712 Sound Cards I may try that approch and add that file.

Retrieved from "http://www.gentoo-wiki.info/TIP_Send_audio_from_one_card_to_the_other"

Last modified: Mon, 08 Sep 2008 06:04:00 +0000 Hits: 6,276