23 Sep
2011
23 Sep
'11
11:03 p.m.
Well, if it's only about snd-aloop, another option would be to use vmalloc'ed buffer for aloop. Since it's no hardware buffer, it's more system-friendly, and you don't need a pre-allocation. Again, an untested patch is below.
I wasn't sure why physically-contiguous memory would be required, just reduced it, but it makes sense to remove it altogether.
I used a double loopback, one in alsa and one in pulseaudio. Works fine. $ pactl load-module module-loopback source=alsa_input.1.analog-stereo sink=alsa_output.pci-0000_00_1b.0.analog-stereo $ aplay -Dhw:1,1 viol-1mn.wav
For some reason I couldn't apply the patch as is, here's what I used Thanks! -Pierre