From: Takashi Iwai Subject: Re: [PATCH] ALSA: snd-aloop: make preallocated buffer size configurable Date: Sat, 24 Sep 2011 12:20:40 +0200 Message-ID: References: <1316545332-2229-1-git-send-email-pierre-louis.bossart@linux.intel.com> <1316811812.2191.6.camel@pbossart-Dell-N7010> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 2494024452 for ; Sat, 24 Sep 2011 12:20:41 +0200 (CEST) In-Reply-To: <1316811812.2191.6.camel@pbossart-Dell-N7010> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Pierre-Louis Bossart Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Fri, 23 Sep 2011 16:03:31 -0500, Pierre-Louis Bossart wrote: > > > 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! OK, I applied the patch now to sound git tree. thanks, Takashi