ASoC: Begin to factor out register cache I/O functions
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 5 Jul 2009 16:24:50 +0000 (17:24 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 5 Jul 2009 16:24:50 +0000 (17:24 +0100)
commit17a52fd60a0a0e617ed94aadb1b19751a8fa219e
tree2c2fd4526ae219ec9435a0a4b0fc281a5ca62b7c
parent5420f30723122012c7bb868a55ff21c7d383b68e
ASoC: Begin to factor out register cache I/O functions

A lot of CODECs share the same register data formats and therefore
replicate the code to manage access to and caching of the register
map. In order to reduce code duplication centralised versions of
this code will be introduced with drivers able to configure the use
of the common code by calling the new snd_soc_codec_set_cache_io()
API call during startup.

As an initial user the 7 bit address/9 bit data format used by many
Wolfson devices is supported for write only CODECs and the drivers
with straightforward register cache implementations are converted to
use it.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
include/sound/soc.h
sound/soc/Makefile
sound/soc/codecs/wm8510.c
sound/soc/codecs/wm8728.c
sound/soc/codecs/wm8731.c
sound/soc/codecs/wm8750.c
sound/soc/codecs/wm8960.c
sound/soc/codecs/wm8971.c
sound/soc/codecs/wm8988.c
sound/soc/soc-cache.c [new file with mode: 0644]