From: Liam Girdwood <liam.girdwood@wolfsonmicro.com>
To: lkml <linux-kernel@vger.kernel.org>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>,
Marcelo Tosatti <marcelo.tosatti@cyclades.com.br>
Subject: [PATCH] AC97 2.4.23-pre3 - WM9712 suspend/resume
Date: Fri, 12 Sep 2003 16:49:17 +0100 [thread overview]
Message-ID: <1063381757.7795.25.camel@caernarfon> (raw)
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.
reply other threads:[~2003-09-12 15:49 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1063381757.7795.25.camel@caernarfon \
--to=liam.girdwood@wolfsonmicro.com \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=marcelo.tosatti@cyclades.com.br \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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