]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: cs4720: use snd_soc_cache_sync()
authorDaniel Mack <zonque@gmail.com>
Tue, 22 Nov 2011 16:17:23 +0000 (17:17 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 22 Nov 2011 23:06:07 +0000 (23:06 +0000)
commitd9e47bf10a3652590dbee45f493b878b21611672
tree6b4a5bf95f57d958d8550c174bae6853a4f1b45c
parent7f67ee5ed4312d2f4729a45783f22d44047dd08e
ASoC: cs4720: use snd_soc_cache_sync()

Replace the manual register restore mechanism in cs4270.c and call the
generic snd_soc_cache_sync() handler instead.

This factors code out in favour of core facilities and also fixes a
bus confusion that is most probably caused by intermixing i2c-regmap
functions and i2c_smbus_* accessors.

Signed-off-by: Daniel Mack <zonque@gmail.com>
Reported-and-tested-by: Sven Neumann <s.neumann@raumfeld.com>
Acked-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/cs4270.c