From: "Pierre-Louis Bossart" Subject: Re: [PATCH] ALSA: snd-aloop: make preallocated buffer size configurable Date: Wed, 21 Sep 2011 08:26:27 -0500 Message-ID: <39174.066638998$1316611608@news.gmane.org> References: <1316545332-2229-1-git-send-email-pierre-louis.bossart@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by alsa0.perex.cz (Postfix) with ESMTP id 636FE103ACC for ; Wed, 21 Sep 2011 15:26:35 +0200 (CEST) In-Reply-To: Content-Language: en-us 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: 'Takashi Iwai' Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org > > Default of 2MB of physically-contiguous memory can be > > too high for embedded solutions, make the size configurable. > > Hm, maybe better to have an option for global limit of preallocation? > The problem is not necessarily specific to snd-aloop. Not sure I understand the comment. This code is essentially the same as the configuration option for HDAudio, and the parameter value defines the amount of preallocated memory, with a limit to 32MB. -Pierre