[linux-audio-user] .asoundrc - merging two soundcards

From: federico <xaero@email-addr-hidden>
Date: Sun Oct 16 2005 - 00:32:38 EEST

i want to merge my two devices (analog and digital) to be able to use
them together in jack/qjackctl.
my card configuration is:
hw:1,0 -> 2 in, 8 out
hw:1,1 -> 8 in, 8 out
which is an asymmetrical "look".
so i created a /etc/asound.conf file (see below).
but when i start jack, it says:
ALSA: mmap-based access is not possible for the capture stream of this
audio interface
ALSA: cannot configure capture channel

this is because i used a null pcm with the asym plugin (i think).
anyone knows how to workaround this?

here is my asound.conf:

pcm.!default {
    type plug
    slave sl44100
}
ctl.!default {
    type hw
    card 1
}
pcm_slave.sl44100 {
    pcm "hw:1,0"
    channels 2
    rate 44100
}

pcm.Gina_Capture {
    type asym
    playback {
        pcm {
            type null
        }
    }
    capture {
        pcm {
            type hw
            card 1
            device 0
        }
    }
}
pcm.Gina_Playback {
    type asym
    playback {
        pcm {
            type hw
            card 1
            device 0
        }
    }
    capture {
        pcm {
            type null
        }
    }
}
pcm.Fostex_ADAT {
    type hw
    card 1
    device 1
}

pcm.multi {
    type multi
    slaves.a.pcm "Gina_Playback"
    slaves.a.channels 8
    slaves.b.pcm "Gina_Capture"
    slaves.b.channels 2
    slaves.z.pcm "Fostex_ADAT"
    slaves.z.channels 8
    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
    bindings.8.slave z
    bindings.8.channel 0
    bindings.9.slave z
    bindings.9.channel 1
    bindings.10.slave z
    bindings.10.channel 2
    bindings.11.slave z
    bindings.11.channel 3
    bindings.12.slave z
    bindings.12.channel 4
    bindings.13.slave z
    bindings.13.channel 5
    bindings.14.slave z
    bindings.14.channel 6
    bindings.15.slave z
    bindings.15.channel 7
    bindings.16.slave b
    bindings.16.channel 0
    bindings.17.slave b
    bindings.17.channel 1
}
ctl.multi {
    type hw
    card 1
}

pcm.ttable {
    type route
    slave.pcm "multi"
    ttable.0.0 1
    ttable.1.1 1
    ttable.2.2 1
    ttable.3.3 1
    ttable.4.4 1
    ttable.5.5 1
    ttable.6.6 1
    ttable.7.7 1
    ttable.8.8 1
    ttable.9.9 1
    ttable.10.10 1
    ttable.11.11 1
    ttable.12.12 1
    ttable.13.13 1
    ttable.14.14 1
    ttable.15.15 1
    ttable.16.16 1
    ttable.17.17 1
}
ctl.ttable {
    type hw
    card 1
}
Received on Sun Oct 16 04:15:06 2005

This archive was generated by hypermail 2.1.8 : Sun Oct 16 2005 - 04:15:07 EEST