All of lore.kernel.org
 help / color / mirror / Atom feed
* how to link multi plugin to dsnoop ?
@ 2011-05-11 13:35 Vincent Meserette
  2011-05-11 16:57 ` Clemens Ladisch
  0 siblings, 1 reply; 2+ messages in thread
From: Vincent Meserette @ 2011-05-11 13:35 UTC (permalink / raw)
  To: ALSA Development Mailing List

Hi all,

I would like to allow multiple applications to access the audio inputs and
outputs of my system at same time.
I succeded to make it for the audio outputs by using the dmix plugin, but I
don't know how to do it with the dsnoop plugin because it seems I cannot
link directly the multi plugin to dsnoop.
Here is the error message I have with the /etc/asound.conf file presented
below :

arecord -D"alduplex" -c4 -r48000 -fS16_LE /tmp/test.wav
ALSA lib pcm_direct.c:1490:(_snd_pcm_direct_get_slave_ipc_offset) Invalid
type 'multi' for slave PCM
arecord: main:654: audio open error: Invalid argument

Does someone know how can I route the multi plugin to dsnoop ?

Thanks in advance

My /etc/asound.conf file :

#output device
pcm.AD1989A_outputs{
    type hw
    card 0
}

pcm.aldmix{
    type dmix
     ipc_key 1024
    ipc_perm 0666
    slave{
        pcm AD1989A_outputs
    }

}

#input device
pcm.4channelsDeinterleaved {
        type multi

        slaves.a.pcm "hw:0,0,0"
        slaves.a.channels 2
        slaves.b.pcm "hw:0,0,2"
        slaves.b.channels 2

        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 b
        bindings.3.channel 1
}

pcm.AD1989A_inputs {
        type route
        slave.pcm "4channelsDeinterleaved"
        ttable.0.0 1
        ttable.1.1 1
        ttable.2.2 1
        ttable.3.3 1
}

#4 channels dsnoop (plug-in for capture)
pcm.aldsnoop{
    type dsnoop
    ipc_key 1025
        ipc_perm 0666
    slave{
        pcm AD1989A_inputs
        rate 48000
        channels 4
    }

}

pcm.alduplex {
    type asym
    capture.pcm "aldsnoop"
    playback.pcm "aldmix"
}

### CTL DEVICES (controls)
ctl.mixer0 {
    type hw
    card 0
}

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: how to link multi plugin to dsnoop ?
  2011-05-11 13:35 how to link multi plugin to dsnoop ? Vincent Meserette
@ 2011-05-11 16:57 ` Clemens Ladisch
  0 siblings, 0 replies; 2+ messages in thread
From: Clemens Ladisch @ 2011-05-11 16:57 UTC (permalink / raw)
  To: Vincent Meserette; +Cc: ALSA Development Mailing List

Vincent Meserette wrote:
> Does someone know how can I route the multi plugin to dsnoop ?

The dmix/dshare/dsnoop plugins work only directly on a hardware device.

Use two dsnoop plugins on the hw devices, then tie them together with
a multi.


Regards,
Clemens

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-05-11 16:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-11 13:35 how to link multi plugin to dsnoop ? Vincent Meserette
2011-05-11 16:57 ` Clemens Ladisch

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.