On Tue, 2006-04-11 at 16:04 -0700, Lance Blisters wrote:
I bought a Layla24 and Cardbus adaptor. Works
beatifully with ALSA/JACK/ARDOUR up to 8 channels. However, the soundcard presents the 8
analog channels as device 0 and 8 digital channels as device 1. JACK will only open one
device at a time. So in order to record and play back 16 channels with Ardour, I
apparently need to create a virtual ALSA device combining the two LAYLA subdevices.
Does this work? (based on
http://www.sound-man.co.uk/linuxaudio/ice1712multi.html)
# .asoundrc for layla
#
# Create virtual devices out of multiple subdevices
# JACK will need MMAP_COMPLEX support to use this.
pcm.multi_capture {
type multi
slaves.a.pcm hw:0,0
slaves.a.channels 8
slaves.b.pcm hw:0,1
slaves.b.channels 8
# First 8 channels of first soundcard (capture)
bindings.0.slave a
bindings.0.channel 0
bindings.1.slave a
bindings.1.channel 1
bindings.2.slave a
bindings.2.channel 2
bindings.3.slave a
bindings.3.channel 3
bindings.4.slave a
bindings.4.channel 4
bindings.5.slave a
bindings.5.channel 5
bindings.6.slave a
bindings.6.channel 6
bindings.7.slave a
bindings.7.channel 7
# First 8 channels of second soundcard (capture)
bindings.8.slave b
bindings.8.channel 0
bindings.9.slave b
bindings.9.channel 1
bindings.10.slave b
bindings.10.channel 2
bindings.11.slave b
bindings.11.channel 3
bindings.12.slave b
bindings.12.channel 4
bindings.13.slave b
bindings.13.channel 5
bindings.14.slave b
bindings.14.channel 6
bindings.15.slave b
bindings.15.channel 7
}
ctl.multi_capture {
type hw
card 0
}
pcm.multi_playback {
type multi
slaves.a.pcm hw:0,0
slaves.a.channels 8
slaves.b.pcm hw:0,1
slaves.b.channels 8
# First 8 channels of first soundcard (playback)
bindings.0.slave a
bindings.0.channel 0
bindings.1.slave a
bindings.1.channel 1
bindings.2.slave a
bindings.2.channel 2
bindings.3.slave a
bindings.3.channel 3
bindings.4.slave a
bindings.4.channel 4
bindings.5.slave a
bindings.5.channel 5
bindings.6.slave a
bindings.6.channel 6
bindings.7.slave a
bindings.7.channel 7
# First 8 channels of second soundcard (playback)
bindings.8.slave b
bindings.8.channel 0
bindings.9.slave b
bindings.9.channel 1
bindings.10.slave b
bindings.10.channel 2
bindings.11.slave b
bindings.11.channel 3
bindings.12.slave b
bindings.12.channel 4
bindings.13.slave b
bindings.13.channel 5
bindings.14.slave b
bindings.14.channel 6
bindings.15.slave b
bindings.15.channel 7
}
ctl.multi_playback {
type hw
card 0
}