alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ASoC: remove bogus SLEEP mode from wm8978 driver
@ 2010-01-28 15:28 Guennadi Liakhovetski
  2010-01-29 11:04 ` Liam Girdwood
  2010-01-29 14:22 ` Mark Brown
  0 siblings, 2 replies; 3+ messages in thread
From: Guennadi Liakhovetski @ 2010-01-28 15:28 UTC (permalink / raw)
  To: alsa-devel; +Cc: Mark Brown, Liam Girdwood

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 <g.liakhovetski@gmx.de>
---
 sound/soc/codecs/wm8978.c |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)

diff --git a/sound/soc/codecs/wm8978.c b/sound/soc/codecs/wm8978.c
index b86ef47..8dcebaa 100644
--- a/sound/soc/codecs/wm8978.c
+++ b/sound/soc/codecs/wm8978.c
@@ -873,9 +873,7 @@ 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)
-- 
1.6.2.4

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

* Re: [PATCH] ASoC: remove bogus SLEEP mode from wm8978 driver
  2010-01-28 15:28 [PATCH] ASoC: remove bogus SLEEP mode from wm8978 driver Guennadi Liakhovetski
@ 2010-01-29 11:04 ` Liam Girdwood
  2010-01-29 14:22 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Liam Girdwood @ 2010-01-29 11:04 UTC (permalink / raw)
  To: Guennadi Liakhovetski; +Cc: alsa-devel, Mark Brown

On Thu, 2010-01-28 at 16:28 +0100, Guennadi Liakhovetski wrote:
> 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 <g.liakhovetski@gmx.de>
> ---

Both Wm8978 patches :-

Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>

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

* Re: [PATCH] ASoC: remove bogus SLEEP mode from wm8978 driver
  2010-01-28 15:28 [PATCH] ASoC: remove bogus SLEEP mode from wm8978 driver Guennadi Liakhovetski
  2010-01-29 11:04 ` Liam Girdwood
@ 2010-01-29 14:22 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2010-01-29 14:22 UTC (permalink / raw)
  To: Guennadi Liakhovetski; +Cc: alsa-devel, Liam Girdwood

On Thu, Jan 28, 2010 at 04:28:55PM +0100, Guennadi Liakhovetski wrote:
> 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.

Applied, thanks but I had to manually merge the patch - not sure what
the conflict was, I suspect there may be a whitespace issue or
something.

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

end of thread, other threads:[~2010-01-29 14:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-28 15:28 [PATCH] ASoC: remove bogus SLEEP mode from wm8978 driver Guennadi Liakhovetski
2010-01-29 11:04 ` Liam Girdwood
2010-01-29 14:22 ` 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).