Subject: [linux-audio-user] Re: How to "connect" two audio devices with alsa?
From: Joern Nettingsmeier (nettings_AT_folkwang-hochschule.de)
Date: Mon Jun 10 2002 - 18:05:59 EEST
[cc:ing alsa-dev and lau]
Richard Guenther wrote:
> I'd like to create a virtual 2-(stereo)-channel alsa device from one
> ISA SB AWE and one on-board VIA alsa device. Has anyone figured out
> how to do this using .asoundrc magic? [I know Jaroslav knows and told
> Joern, but I think this is of greater interest]
> Joern/Jaroslav, can you post a quick howto on this topic? Preferrably
> including some .asoundrc quoting...
just to clarify, this will not create the mythical "multi-channel
soundcard out of el-cheapo consumer cards". you will drift out of sync
over time. still, it is sometimes helpful to make applications see one
4channel card to allow for flexible routing if they can't easily be made
to talk to multiple cards (jack being one example).
here's how you do it (thanks to jaroslav and takashi for explaining it
cat << EOF >> ~/.asoundrc
# create a virtual four-channel device with two soundcards:
# iiuc, this is in fact two interleaved stereo streams in
# different memory locations, so jack will complain that it
# cannot get mmap-based access. see below.
# i do not really understand what it means to have
# a ctl interface to a multi device. but jack will be
# unhappy if there is no mixer to talk to, so we set
# this to card 0.
# this creates a 4channel interleaved pcm stream based on
# the multi device. jack will work with this one.
# see above.
a syntax description is in
the available plugins (i.e. the "type" entries) are described in the
doxygen docs at
it seems there is now also a LADSPA plugin plugin :) i have not tried it
yet, but it looks interesting.
to test the above setting, i feed a signal to both soundcards, play it
back and listen to it via with my external mixer:
# arecord -f cd -D multi -c 4 | aplay -D multi
this will give you loads of xruns, but it's probably ok for testing.
to start jack with the new device, use
# jackd [-a] -R [-v] -d alsa -d ttable [-p 1024]
i hope i got it right...
the settings Work For Me (tm), although i can't get ardour to record
from the device, but then i can't get it to record at all at the moment.
jack starts ok, though.
This archive was generated by hypermail 2b28 : Mon Jun 10 2002 - 17:46:57 EEST