diff options
author | Jarkko Nikula <jhnikula@gmail.com> | 2011-05-20 16:52:37 +0300 |
---|---|---|
committer | Liam Girdwood <lrg@ti.com> | 2011-05-23 10:36:43 +0100 |
commit | 508b76864c18f34f8d6ba08d192f5817f8dc8ead (patch) | |
tree | a28b8c4712818140cd98a738ba41e9d577badb9d /sound/soc/codecs/tlv320aic3x.c | |
parent | 2aba76f014a7b56ab4fe75845c5fd57b5590acc2 (diff) | |
download | linux-3.10-508b76864c18f34f8d6ba08d192f5817f8dc8ead.tar.gz linux-3.10-508b76864c18f34f8d6ba08d192f5817f8dc8ead.tar.bz2 linux-3.10-508b76864c18f34f8d6ba08d192f5817f8dc8ead.zip |
ASoC: tlv320aic3x: Don't sync first two registers from register cache
There is no need to sync first two registers from cache to hw after a reset.
First one is used to select page for register access and this driver is
normally accessing page 0 only. Second one does a software reset which is
obviously unneeded after hardware or previous software reset command.
Signed-off-by: Jarkko Nikula <jhnikula@gmail.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@ti.com>
Diffstat (limited to 'sound/soc/codecs/tlv320aic3x.c')
-rw-r--r-- | sound/soc/codecs/tlv320aic3x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/tlv320aic3x.c b/sound/soc/codecs/tlv320aic3x.c index c3d96fc8c26..9047bb173c6 100644 --- a/sound/soc/codecs/tlv320aic3x.c +++ b/sound/soc/codecs/tlv320aic3x.c @@ -1114,7 +1114,7 @@ static int aic3x_set_power(struct snd_soc_codec *codec, int power) /* Sync reg_cache with the hardware */ codec->cache_only = 0; - for (i = 0; i < ARRAY_SIZE(aic3x_reg); i++) + for (i = AIC3X_SAMPLE_RATE_SEL_REG; i < ARRAY_SIZE(aic3x_reg); i++) snd_soc_write(codec, i, cache[i]); if (aic3x->model == AIC3X_MODEL_3007) aic3x_init_3007(codec); |