From: Takashi Iwai Subject: Re: ASoC updates for 2.6.37 Date: Wed, 06 Oct 2010 09:35:40 +0200 Message-ID: References: <20101005191359.GA23315@opensource.wolfsonmicro.com> <20101006063401.GB17998@sirena.org.uk> <20101006073104.GC17998@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 mx1.suse.de (cantor.suse.de [195.135.220.2]) by alsa0.perex.cz (Postfix) with ESMTP id 86CA32442F for ; Wed, 6 Oct 2010 09:35:40 +0200 (CEST) In-Reply-To: <20101006073104.GC17998@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: dp@opensource.wolfsonmicro.com, alsa-devel@alsa-project.org, Liam Girdwood List-Id: alsa-devel@alsa-project.org At Wed, 6 Oct 2010 08:31:04 +0100, Mark Brown wrote: > > On Wed, Oct 06, 2010 at 09:10:23AM +0200, Takashi Iwai wrote: > > > They also differ in the type of the cache variable. You could do > > > something with macros but it'd not be terribly pleasant. > > > Hm, this can be tricky. Meanwhile, we could have it always int, > > instead of different types. The amount of memory you save by > > supporting different size might be more than the waste of 3 bytes for > > 1 byte data array. > > Given the size of the register maps for modern chips with visible DSPs > in them the overhead can be non-trivial. Doing this also inhibits > operations like doing bulk writes of data from cache (which we don't do > right now but may wish to do in future) since the data can't just be > passed to the bus I/O functions so it's not purely a memory efficiency > thing. OK, that's another argument. We need C++ for a better implementation of such codes, heh ;) Takashi