From: Takashi Iwai Subject: Re: [PATCH 1/2 v2] ASoC: soc-cache: block based rbtree compression Date: Tue, 03 May 2011 17:30:44 +0200 Message-ID: References: <20110503110205.GE1762@opensource.wolfsonmicro.com> <20110503130259.GK1762@opensource.wolfsonmicro.com> <20110503132420.GM1762@opensource.wolfsonmicro.com> <20110503135117.GA2893@sirena.org.uk> <20110503142729.GP1762@opensource.wolfsonmicro.com> <20110503152405.GV1762@opensource.wolfsonmicro.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 9ABFE1038B7 for ; Tue, 3 May 2011 17:30:48 +0200 (CEST) In-Reply-To: <20110503152405.GV1762@opensource.wolfsonmicro.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: Mark Brown Cc: Dimitris Papastamos , alsa-devel@alsa-project.org, patches@opensource.wolfsonmicro.com, Liam Girdwood , Liam Girdwood List-Id: alsa-devel@alsa-project.org At Tue, 3 May 2011 16:24:05 +0100, Mark Brown wrote: > > On Tue, May 03, 2011 at 05:22:12PM +0200, Takashi Iwai wrote: > > > This is what I don't understand. The sync loop is anyway done in the > > sorted order in rb-tree. How can the contiguous array helps to change > > the I/O pattern...? > > You don't need to retransmit the I2C device address or the register > address for every single register. Is this behavior achieved really by these patches? As far as I read these two patches, they change how values are stored in the rb-tree. Now it'll be partially an array instead of one-value-per-node. But, this doesn't change how snd_soc_read() / snd_soc_write() are called. Could you give an example which driver would be influenced actually? Takashi