Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Brown <broonie@opensource.wolfsonmicro.com>
To: Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel@alsa-project.org,
	Mark Brown <broonie@opensource.wolfsonmicro.com>
Subject: [PATCH 3/7] ASoC: Improve WM9713 voice DAC shutdown procedure
Date: Wed, 25 Feb 2009 10:48:18 +0000	[thread overview]
Message-ID: <1235558902-20314-3-git-send-email-broonie@opensource.wolfsonmicro.com> (raw)
In-Reply-To: <20090225104701.GA20221@rakim.wolfsonmicro.main>

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
---
 sound/soc/codecs/wm9713.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/sound/soc/codecs/wm9713.c b/sound/soc/codecs/wm9713.c
index 54db9c5..a93aea5 100644
--- a/sound/soc/codecs/wm9713.c
+++ b/sound/soc/codecs/wm9713.c
@@ -940,13 +940,14 @@ static void wm9713_voiceshutdown(struct snd_pcm_substream *substream,
 				 struct snd_soc_dai *dai)
 {
 	struct snd_soc_codec *codec = dai->codec;
-	u16 status;
+	u16 status, rate;
 
 	/* Gracefully shut down the voice interface. */
 	status = ac97_read(codec, AC97_EXTENDED_STATUS) | 0x1000;
-	ac97_write(codec, AC97_HANDSET_RATE, 0x0280);
+	rate = ac97_read(codec, AC97_HANDSET_RATE) & 0xF0FF;
+	ac97_write(codec, AC97_HANDSET_RATE, rate | 0x0200);
 	schedule_timeout_interruptible(msecs_to_jiffies(1));
-	ac97_write(codec, AC97_HANDSET_RATE, 0x0F80);
+	ac97_write(codec, AC97_HANDSET_RATE, rate | 0x0F00);
 	ac97_write(codec, AC97_EXTENDED_MID, status);
 }
 
-- 
1.6.1.3

  parent reply	other threads:[~2009-02-25 10:48 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-25 10:47 ASoC updates for 2.6.30 Mark Brown
2009-02-25 10:48 ` [PATCH 1/7] ASoC: Report I/O errors from WM8753 reset Mark Brown
2009-02-25 10:48 ` [PATCH 2/7] ASoC: Only unregister drivers we registered for WM8753 Mark Brown
2009-02-25 10:48 ` Mark Brown [this message]
2009-02-25 10:48 ` [PATCH 4/7] ASoC: Fix Zylonite voice interface stereo configurations Mark Brown
2009-02-25 16:06   ` Daniel Mack
2009-02-25 16:22     ` Mark Brown
2009-02-25 16:41       ` Daniel Mack
2009-02-25 16:54         ` Mark Brown
2009-02-26  9:59           ` pHilipp Zabel
2009-02-26 10:03             ` Daniel Mack
2009-02-25 10:48 ` [PATCH 5/7] ASoC: Shuffle WM8753 device registration code Mark Brown
2009-02-25 10:48 ` [PATCH 6/7] ASoC: Convert WM8753 to register via normal device probe Mark Brown
2009-02-25 10:48 ` [PATCH 7/7] ASoC: Only write back non-default registers when resuming WM8753 Mark Brown
2009-02-25 10:57 ` ASoC updates for 2.6.30 Takashi Iwai

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=1235558902-20314-3-git-send-email-broonie@opensource.wolfsonmicro.com \
    --to=broonie@opensource.wolfsonmicro.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=tiwai@suse.de \
    /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