projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a34010
)
ASoC: wm8741: Use snd_soc_cache_sync to sync reg_cache with the hardware
author
Axel Lin
<
[email protected]
>
Mon, 17 Oct 2011 12:16:37 +0000
(20:16 +0800)
committer
Mark Brown
<
[email protected]
>
Mon, 17 Oct 2011 21:47:01 +0000
(22:47 +0100)
Signed-off-by: Axel Lin <
[email protected]
>
Acked-by: Liam Girdwood <
[email protected]
>
Signed-off-by: Mark Brown <
[email protected]
>
sound/soc/codecs/wm8741.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/wm8741.c
b/sound/soc/codecs/wm8741.c
index 85ebe029ee1761aa73502ba607394af99cc3857a..57ad22aacc516dc17e18042a98712266f761afa3 100644
(file)
--- a/
sound/soc/codecs/wm8741.c
+++ b/
sound/soc/codecs/wm8741.c
@@
-404,15
+404,7
@@
static struct snd_soc_dai_driver wm8741_dai = {
#ifdef CONFIG_PM
static int wm8741_resume(struct snd_soc_codec *codec)
{
- u16 *cache = codec->reg_cache;
- int i;
-
- /* RESTORE REG Cache */
- for (i = 0; i < WM8741_REGISTER_COUNT; i++) {
- if (cache[i] == wm8741_reg_defaults[i] || WM8741_RESET == i)
- continue;
- snd_soc_write(codec, i, cache[i]);
- }
+ snd_soc_cache_sync(codec);
return 0;
}
#else