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:
9f5b64b
)
ASoC: remove bogus SLEEP mode from wm8978 driver
author
Guennadi Liakhovetski
<
[email protected]
>
Thu, 28 Jan 2010 15:28:55 +0000
(16:28 +0100)
committer
Mark Brown
<
[email protected]
>
Fri, 29 Jan 2010 14:31:03 +0000
(14:31 +0000)
Tests showed, that bit 6 of the WM8978_POWER_MANAGEMENT_2 register of wm8978
affects codec clocks. Being useless for suspend / resume, it cannot be used in
bias-level control either. Remove this bit handling.
Signed-off-by: Guennadi Liakhovetski <
[email protected]
>
Acked-by: Liam Girdwood <
[email protected]
>
Signed-off-by: Mark Brown <
[email protected]
>
sound/soc/codecs/wm8978.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/wm8978.c
b/sound/soc/codecs/wm8978.c
index d9d4e9dd1adba81bc13f6e7ede754553d90cb8ea..8dcebaa8604a32c4018c9c0084bbc35b4fb86f83 100644
(file)
--- a/
sound/soc/codecs/wm8978.c
+++ b/
sound/soc/codecs/wm8978.c
@@
-873,8
+873,6
@@
static int wm8978_suspend(struct platform_device *pdev, pm_message_t state)
wm8978_set_bias_level(codec, SND_SOC_BIAS_OFF);
/* Also switch PLL off */
snd_soc_write(codec, WM8978_POWER_MANAGEMENT_1, 0);
- /* Put to sleep */
- snd_soc_write(codec, WM8978_POWER_MANAGEMENT_2, 0x40);
return 0;
}
@@
-887,9
+885,6
@@
static int wm8978_resume(struct platform_device *pdev)
int i;
u16 *cache = codec->reg_cache;
- /* Wake up the codec */
- snd_soc_write(codec, WM8978_POWER_MANAGEMENT_2, 0);
-
/* Sync reg_cache with the hardware */
for (i = 0; i < ARRAY_SIZE(wm8978_reg); i++) {
if (i == WM8978_RESET)