]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Suppress restore of default register values for rbtree cache sync
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 3 Jun 2011 15:36:30 +0000 (16:36 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 8 Jun 2011 14:24:36 +0000 (15:24 +0100)
commit4784a518cba5f889e8e726223e347a016268f01c
tree47daedf3939f5019b5e68b302e8f77dd1fb61d52
parentf0d0b3251af71a81381fdbe20cdd66b88d7a4528
ASoC: Suppress restore of default register values for rbtree cache sync

Currently the rbtree code will write out the entire register map when
doing a cache sync which is wasteful and will slow things down. Check
to see if the value we're about to write is the default and don't bother
restoring it if it is, either the value will have been retained or the
device will have been reset and holds the value already.

We should really store the defaults in the nodes but this resolves the
immediate issue.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@ti.com>
sound/soc/soc-cache.c