* [PATCH] AC97 2.4.23-pre3 - WM9712 suspend/resume
@ 2003-09-12 15:49 Liam Girdwood
0 siblings, 0 replies; only message in thread
From: Liam Girdwood @ 2003-09-12 15:49 UTC (permalink / raw)
To: lkml; +Cc: Alan Cox, Marcelo Tosatti
Hi,
This patch eliminates pop noises when doing a PM suspend/resume with the
WM9712 AC97 codec.
It should probably also be applied against the 2.6.0-test series.
Cheers
Liam
diff -urN linux-2.4.23-pre3/drivers/sound/ac97_codec.c
linux-2.4.23-pre3-lg1/drivers/sound/ac97_codec.c
--- linux-2.4.23-pre3/drivers/sound/ac97_codec.c 2003-08-25
12:44:42.000000000 +0100
+++ linux-2.4.23-pre3-lg1/drivers/sound/ac97_codec.c 2003-09-12
15:12:42.000000000 +0100
@@ -1077,6 +1077,11 @@
/* WM9711, WM9712 */
static int wolfson_init11(struct ac97_codec * codec)
{
+ /* stop pop's during suspend/resume */
+ codec->codec_write(codec, AC97_WM97XX_TEST,
+ codec->codec_read(codec, AC97_WM97XX_TEST) & 0xffbf);
+
+
/* set out3 volume */
codec->codec_write(codec, AC97_WM9711_OUT3VOL, 0x0808);
return 0;
--
Liam Girdwood <liam.girdwood@wolfsonmicro.com>
Wolfson Microelectronics plc
www.wolfsonmicro.com
T +44 131 272 7000
F +44 131 272 7001
Registered in Scotland 89839
This message may contain confidential or proprietary information. If you receive this message in error, please immediately delete it, destroy all copies of it and notify the sender. Any views expressed in this message are those of the individual sender, except where the message states otherwise. We take reasonable precautions to ensure our Emails are virus free. However, we cannot accept responsibility for any virus transmitted by us and recommend that you subject any incoming Email to your own virus checking procedures.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-09-12 15:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-12 15:49 [PATCH] AC97 2.4.23-pre3 - WM9712 suspend/resume Liam Girdwood
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome