I originally sent this to jackit-devel but it should probably be
discussed on this list too.
--- Begin Message ---
Joern Nettingsmeier wrote:
> Patrick Shirkey wrote:
>
>>Sorry if I have missed the answer to this.
>>
>>Why doesn't a running jackd allow me access to all the cards in my system?
>>
>>Currently I can only access one card at a time. Should I be using the
>>plughw layer in the .asoundrc file to fool jack into thinking they are
>>all one card or is it just not a possibility to use jack for more than
>>one card at a time if they are not sample synced?
>>
>>The reason I want to do this is so I can use my pro multi channel card
>>for playback to my external mixer and my consumer card as a headphones
>>playback device so that I can cue tracks in alsaplayer using two or
>>three mixer channels in ardour for each alsaplayer gui. Latency isn't
>>much of a prob for headphones at this point.
>>
>>I know I can do this if I only use one card but that means sacrificing
>>the headphones because my card has four channels not six. It seems a
>>shame as I do have two other cards giving me a total of four channels at
>>24bit/96KHz and 6 channels at 16bit/48KHz these latter ones currently
>>being redundant in a live situation.
>>
>
>
> i learned from jaroslav and takashi how to do that with a "multi" device
> (i.e. some .asoundrc voodoo). i posted it to lad/lau and alsa-dev under
> the subject 'Re: How to "connect" two audio devices with alsa?'. mark
> rages added it to the wiki at
> http://alsa.opensrc.org/index.php?page=TwoCardsAsOne.
>
> still, as long as the cards are open, they *will* run out of sync. i
> don't understand all of it, but my guess is you'd have to stop the cards
> to be in sync again, i.e. the longer the session, the worse it gets.
> works for me, though.
>
>
In your example you don't say whether your cards have are stereo or mono
channels.
I get this ouput when starting jack
----
# jackd -R -v -d alsa -d ttable
jackd 0.33.0
Copyright 2001-2002 Paul Davis and others.
jackd comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
3475 waiting for signals
creating alsa driver ... ttable|1024|2|48000|swmon
ALSA: no playback configurations available
ALSA: cannot configure capture channel
cannot load driver module alsa
jack main caught signal 15
-----
Using the following in my .asoundrc file. I'm not sure if it is correct
as card0 has two stereo pcm devices. I'm not sure whether they are being
defined in the following or not.
Does
slaves.a.channels 2
refer to the pcm devices
eg. hw:0,0 and hw:0,1
or the first two mono channels available on card0?
eg. left and right channels on hw:0,0
----
# 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.
pcm.multi {
type multi;
slaves.a.pcm "hw:0,0";
slaves.a.channels 2;
slaves.b.pcm "hw:1,0";
slaves.b.channels 1;
bindings.0.slave a;
bindings.0.channel 0;
bindings.1.slave a;
bindings.1.channel 1;
bindings.2.slave b;
bindings.2.channel 0;
# bindings.3.slave a;
# bindings.3.channel 1;
}
# 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.
ctl.multi {
type hw;
card 0;
}
# this creates a 4channel interleaved pcm stream based on
# the multi device. jack will work with this one.
pcm.ttable {
type route;
slave.pcm "multi";
ttable.0.0 1;
ttable.1.1 1;
ttable.2.2 1;
# ttable.3.3 1;
}
# see above.
ctl.ttable {
type hw;
card 0;
}
----
--
Patrick Shirkey - Boost Hardware Ltd.
For the discerning hardware connoisseur
Http://www.boosthardware.com
Http://www.boosthardware.com/LAU/guide/
========================================
_______________________________________________________________
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
_______________________________________________
Jackit-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jackit-devel
--- End Message ---