Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 311087
b: refs/heads/master
c: 3419ae7
h: refs/heads/master
i:
  311085: 458c5d7
  311083: e0624c9
  311079: 96fbf35
  311071: 47678f3
v: v3
  • Loading branch information
Stephen Warren authored and Mark Brown committed Jun 12, 2012
1 parent be007d6 commit e628939
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9c699e0a9566cfb6245284ce4857d7a06b02f3b1
refs/heads/master: 3419ae781f1592b3d367107db6500090495490cd
13 changes: 13 additions & 0 deletions trunk/sound/soc/tegra/tegra_wm8903.c
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,17 @@ static int tegra_wm8903_init(struct snd_soc_pcm_runtime *rtd)
return 0;
}

static int tegra_wm8903_remove(struct snd_soc_card *card)
{
struct snd_soc_pcm_runtime *rtd = &(card->rtd[0]);
struct snd_soc_dai *codec_dai = rtd->codec_dai;
struct snd_soc_codec *codec = codec_dai->codec;

wm8903_mic_detect(codec, NULL, 0, 0);

return 0;
}

static struct snd_soc_dai_link tegra_wm8903_dai = {
.name = "WM8903",
.stream_name = "WM8903 PCM",
Expand All @@ -363,6 +374,8 @@ static struct snd_soc_card snd_soc_tegra_wm8903 = {
.dai_link = &tegra_wm8903_dai,
.num_links = 1,

.remove = tegra_wm8903_remove,

.controls = tegra_wm8903_controls,
.num_controls = ARRAY_SIZE(tegra_wm8903_controls),
.dapm_widgets = tegra_wm8903_dapm_widgets,
Expand Down

0 comments on commit e628939

Please sign in to comment.