AC97 2.4.23-pre3 - WM9712 suspend/resume
PATCH 1/1 AC97 2.4.23-pre3 - WM9712 suspend/resume
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;Signature · 10 lines
Liam Girdwood <[email protected]> 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.