summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/sta32x.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2011-10-13 08:40:08 +0200
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-10-13 12:50:05 +0200
commitf0bbc2b55f47f93286bb1b9ddbdb8ffed3572064 (patch)
tree5779a758368b537e91d4ba31e4d72c2271093651 /sound/soc/codecs/sta32x.c
parentASoC: pxa: Remove redundant snd_soc_dapm_sync() calls from machine drivers (diff)
downloadlinux-f0bbc2b55f47f93286bb1b9ddbdb8ffed3572064.tar.xz
linux-f0bbc2b55f47f93286bb1b9ddbdb8ffed3572064.zip
ASoC: sta32x: Set reg_cache_default to sta32x_regs
Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/sta32x.c')
-rw-r--r--sound/soc/codecs/sta32x.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sound/soc/codecs/sta32x.c b/sound/soc/codecs/sta32x.c
index 5c7def3979c0..754b3ff9afa5 100644
--- a/sound/soc/codecs/sta32x.c
+++ b/sound/soc/codecs/sta32x.c
@@ -756,10 +756,6 @@ static int sta32x_probe(struct snd_soc_codec *codec)
return ret;
}
- /* read reg reset values into cache */
- for (i = 0; i < STA32X_REGISTER_COUNT; i++)
- snd_soc_cache_write(codec, i, sta32x_regs[i]);
-
/* preserve reset values of reserved register bits */
snd_soc_cache_write(codec, STA32X_CONFC,
codec->hw_read(codec, STA32X_CONFC));
@@ -837,6 +833,7 @@ static const struct snd_soc_codec_driver sta32x_codec = {
.resume = sta32x_resume,
.reg_cache_size = STA32X_REGISTER_COUNT,
.reg_word_size = sizeof(u8),
+ .reg_cache_default = sta32x_regs,
.volatile_register = sta32x_reg_is_volatile,
.set_bias_level = sta32x_set_bias_level,
.controls = sta32x_snd_controls,