From: Takashi Iwai Subject: Re: [PATCH 2/3] ASoC: Blackfin: add multi-channel supporting in Blackfin ASoC driver and AD1980 codec driver Date: Tue, 21 Oct 2008 12:08:19 +0200 Message-ID: References: <0F1B54C89D5F954D8535DB252AF412FA02E662F8@chinexm1.ad.analog.com> <20081021094915.GG10841@sirena.org.uk> 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 (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id D7BE324522 for ; Tue, 21 Oct 2008 12:08:36 +0200 (CEST) In-Reply-To: <20081021094915.GG10841@sirena.org.uk> 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: Mark Brown Cc: "Cai, Cliff" , Bryan Wu , alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Tue, 21 Oct 2008 10:49:16 +0100, Mark Brown wrote: > > On Tue, Oct 21, 2008 at 05:48:56PM +0800, Cai, Cliff wrote: > > >From: Takashi Iwai [mailto:tiwai@suse.de] > > > >But, CONFIG_SND_MULTICHAN_SUPPORT would change any buffer > > >allocation behavior? I don't find it... > > > It will change the ac97 frame size defined in bf5xx-ac97.h,the frame > > size the basic unit of the DMA buffer > > So this is purely a restriction in the driver, rather than a property of > the hardware - is there any reason why you can't change the size of > buffer that you allocate at runtime? It'd be possible, as far as I understand. It's rather a design issue. bf5xx driver preallocates the max size buffer. Otherwise you may get no large buffer at later fragmentation. And that size is different between with and without multi-channel support. Takashi