[alsa-devel] [PATCH] audio: sai: Add Power Management support

Li.Xiubo at freescale.com Li.Xiubo at freescale.com
Mon Nov 3 03:35:44 CET 2014


Hi Mark,



> -----Original Message-----
> From: Mark Brown [mailto:broonie at kernel.org]
> Sent: Thursday, October 30, 2014 7:23 PM
> To: Xiubo Li-B47053
> Cc: Wang Huan-B18965; alsa-devel at alsa-project.org; tiwai at suse.de; linux-
> kernel at vger.kernel.org; lgirdwood at gmail.com; perex at perex.cz; linux-arm-
> kernel at lists.infradead.org
> Subject: Re: [PATCH] audio: sai: Add Power Management support
> 
> On Thu, Oct 30, 2014 at 03:30:40AM +0000, Li.Xiubo at freescale.com wrote:
> 
> > One more thing, if the device is not performance critical, then shouldn't we
> > Take care of the cache memory consumption to determine using flat or rbtree
> > Type ?
> 
> Yes, it's always fine to use a rbtree if it makes sense - it was just an
> unusual choice for a device like this that didn't seem to be discussed.
> 
> Depending on the register map a flat cache can actually be more memory
> efficient sometimes since there's some overhead for the rbtree data
> structures, if you've just got one block of registers with no gaps a
> flat cache is going to be a win there.

Yes, so my comprehension of it was right.

Thanks very much,

BRs
Xiubo


More information about the Alsa-devel mailing list