# https://alsa.opensrc.org/Jack_and_Loopback_device_as_Alsa-to-Jack_bridge # * ALSA playback = subdevice 0,0 # * ALSA capture = subdevice 0,1 # * Jack readable client (cloop) = subdevice 1,0 # * Jack writable client (ploop) = subdevice 1,1 # playback pcm.amix { type dmix ipc_key 219345 slave.pcm "hw:Loopback,0,0" } # capture pcm.asnoop { type dsnoop ipc_key 219346 slave.pcm "hw:Loopback,0,0" } # duplex device to combine the above pcm.aduplex { type asym playback.pcm "amix" capture.pcm "asnoop" } # jack devices pcm.ploop { type plug slave.pcm "hw:Loopback,1,1" } pcm.cloop { type dsnoop ipc_key 219348 slave.pcm "hw:Loopback,1,0" } # default device pcm.!default { type plug slave.pcm "aduplex" }