[alsa-devel] [PATCH] ALSA: snd-aloop: make preallocated buffer size configurable

Pierre-Louis Bossart pierre-louis.bossart at linux.intel.com
Fri Sep 23 23:03:31 CEST 2011

> 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
$ aplay -Dhw:1,1 viol-1mn.wav 

For some reason I couldn't apply the patch as is, here's what I used
-------------- next part --------------
A non-text attachment was scrubbed...
Name: aloop.patch
Type: text/x-patch
Size: 1893 bytes
Desc: not available
Url : http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20110923/91feaac8/attachment.patch 

More information about the Alsa-devel mailing list