alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] ASoC: alc5623: Convert codec->hw_read to snd_soc_read
@ 2011-10-14  1:35 Axel Lin
  2011-10-14  1:37 ` [PATCH 2/3] ASoC: tlv320aic3x: " Axel Lin
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Axel Lin @ 2011-10-14  1:35 UTC (permalink / raw)
  To: linux-kernel; +Cc: Arnaud Patard, Liam Girdwood, Mark Brown, alsa-devel

codec->hw_read is broken now, let's covert to snd_soc_read.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
 sound/soc/codecs/alc5623.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/sound/soc/codecs/alc5623.c b/sound/soc/codecs/alc5623.c
index 557b3af..984b14b 100644
--- a/sound/soc/codecs/alc5623.c
+++ b/sound/soc/codecs/alc5623.c
@@ -53,8 +53,10 @@ static void alc5623_fill_cache(struct snd_soc_codec *codec)
 	u16 *cache = codec->reg_cache;
 
 	/* not really efficient ... */
+	codec->cache_bypass = 1;
 	for (i = 0 ; i < codec->driver->reg_cache_size ; i += step)
-		cache[i] = codec->hw_read(codec, i);
+		cache[i] = snd_soc_read(codec, i);
+	codec->cache_bypass = 0;
 }
 
 static inline int alc5623_reset(struct snd_soc_codec *codec)
-- 
1.7.4.1

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

end of thread, other threads:[~2011-10-14 19:44 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-14  1:35 [PATCH 1/3] ASoC: alc5623: Convert codec->hw_read to snd_soc_read Axel Lin
2011-10-14  1:37 ` [PATCH 2/3] ASoC: tlv320aic3x: " Axel Lin
2011-10-14 19:35   ` Mark Brown
2011-10-14 19:44     ` Vladimir Barinov
2011-10-14  1:37 ` [PATCH 3/3] ASoC: wm8991: " Axel Lin
2011-10-14  1:39   ` [PATCH 3/3] ASoC: wm8961: " Axel Lin
2011-10-14 19:36     ` Mark Brown
2011-10-14  1:41   ` [PATCH 3/3] ASoC: wm8991: " Axel Lin
2011-10-14 19:34 ` [PATCH 1/3] ASoC: alc5623: " Mark Brown

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).