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 11:39:06 +0200 Message-ID: References: <1224560173-8728-1-git-send-email-cooloney@kernel.org> <1224560173-8728-3-git-send-email-cooloney@kernel.org> <20081021083715.GA10841@sirena.org.uk> <0F1B54C89D5F954D8535DB252AF412FA02E66236@chinexm1.ad.analog.com> <20081021091550.GE10841@sirena.org.uk> <0F1B54C89D5F954D8535DB252AF412FA02E662B0@chinexm1.ad.analog.com> 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 C6BEF24770 for ; Tue, 21 Oct 2008 11:39:23 +0200 (CEST) In-Reply-To: <0F1B54C89D5F954D8535DB252AF412FA02E662B0@chinexm1.ad.analog.com> 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: "Cai, Cliff" Cc: Bryan Wu , Mark Brown , alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Tue, 21 Oct 2008 17:35:49 +0800, Cai, Cliff wrote: > > > > >-----Original Message----- > >From: Mark Brown [mailto:broonie@sirena.org.uk] > >Sent: Tuesday, October 21, 2008 5:16 PM > >To: Cai, Cliff > >Cc: Bryan Wu; alsa-devel@alsa-project.org > >Subject: Re: [PATCH 2/3] ASoC: Blackfin: add multi-channel > >supporting in Blackfin ASoC driver and AD1980 codec driver > > > >On Tue, Oct 21, 2008 at 05:08:31PM +0800, Cai, Cliff wrote: > > > >> >To be honest, I'm surprised that the multi-channel support > >can't only > >> >incur the extra memory consumpton when playing back a multi-channel > >> >stream - I'd have expected the hardware to work in the same > >way for a > >> >normal stereo stream even if multi-channel support is built in. > > > >> Yes,hardware almost works in the same way as playing a stereo > >> stream,except That it need to fill more data to DMA memory > >> manually,since we just simulate AC97 Controller using serial port. > > > >My point is that the configuration of the hardware for > >multi-channel playback only needs to be done when actually > >playing back multi-channel data. When playing back stereo > >data it should be possible to configure the hardware and do > >the simulation in the same way as when multi-channel support > >is not compiled in and avoid the additional costs which that incurs. > > > >As well as saving memory I'd expect configuring this at > >runtime to also save some power when playing back two or four > >channel data. > > > > Yes, it's an ideal way,but it's not safe to allocate continuous memory > dynamicly, > Since embedded system has limited uncached DMA memory. But, CONFIG_SND_MULTICHAN_SUPPORT would change any buffer allocation behavior? I don't find it... Anyway, I agree with Mark. The setup can be ideally dynamically changed. thanks, Takashi