alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] ASoC: tlv320aic3x: Don't sync first two registers from register cache
@ 2011-05-20 13:52 Jarkko Nikula
  2011-05-20 13:52 ` [PATCH 2/2] ASoC: tlv320aic3x: Do soft reset to codec when going to bias off state Jarkko Nikula
  2011-05-21 15:30 ` [PATCH 1/2] ASoC: tlv320aic3x: Don't sync first two registers from register cache Liam Girdwood
  0 siblings, 2 replies; 5+ messages in thread
From: Jarkko Nikula @ 2011-05-20 13:52 UTC (permalink / raw)
  To: alsa-devel; +Cc: Mark Brown, Liam Girdwood

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>
---
 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 c3d96fc..9047bb1 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);
-- 
1.7.4.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-05-23  9:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-20 13:52 [PATCH 1/2] ASoC: tlv320aic3x: Don't sync first two registers from register cache Jarkko Nikula
2011-05-20 13:52 ` [PATCH 2/2] ASoC: tlv320aic3x: Do soft reset to codec when going to bias off state Jarkko Nikula
2011-05-21 15:30 ` [PATCH 1/2] ASoC: tlv320aic3x: Don't sync first two registers from register cache Liam Girdwood
2011-05-22 10:21   ` Mark Brown
2011-05-23  9:39     ` Liam Girdwood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).