Okay, so here's the situation. I have a home server running Ubuntu, which has two available sound cards: a Xonar D2 and a generic USB sound card. The crux of the issue is, I need a way to route the digital audio input on the Xonar to the output of the USB sound card, whilst also outputting audio from the computer itself to the same device.

Here's a basic diagram of what I'm thinking of:

                      /------------\
                      |  (Server)  |
                      |            |
Optical (Xonar D2) >--|---->----\  |
                      |         |  |
                      | Music >->--|--> Output (USB sound card)
                      |            |
                      \------------/

Currently, both cards work perfectly with my Linux setup as individuals, all inputs/outputs are properly recognised (by ALSA) and (as far as I know) I can do everything the cards are capable of in terms of routing. But I can't fathom out how to get the input of one to go out of the other.

I have played about with PulseAudio (which seems the best solution), but I know very little about it, and couldn't get it to do anything useful. I suspect it can do what I want, but I've no idea how to go about it.

Ideally, I'd like to be able to route multiple inputs on the Xonar card (i.e. the mic/line inputs as well as digital), but getting the digital one to work is the main issue, and would improve my audio setup significantly if it's possible to do.

link|improve this question
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.