Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 132859
b: refs/heads/master
c: 8056d9b
h: refs/heads/master
i:
  132857: bed938c
  132855: a842969
v: v3
  • Loading branch information
Mark Brown committed Feb 24, 2009
1 parent c759615 commit f17605a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 93e051d2771e6bf70e86b8265bfbf296a457d044
refs/heads/master: 8056d9bbb57207854462b6b0a3a75d172300cce5
7 changes: 4 additions & 3 deletions trunk/sound/soc/codecs/wm9713.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit f17605a

Please sign in to comment.