From e62893970bd80b81eac0f719223d57bd6cd3c18f Mon Sep 17 00:00:00 2001 From: Stephen Warren Date: Mon, 11 Jun 2012 11:27:19 -0600 Subject: [PATCH] --- yaml --- r: 311087 b: refs/heads/master c: 3419ae781f1592b3d367107db6500090495490cd h: refs/heads/master i: 311085: 458c5d7316c3472a86196e7cdb18811e8fdd3330 311083: e0624c929bcc6d1b3551ff39f5c51c8ab1101837 311079: 96fbf35e40a18b196465b2d62c63cd745d4eace7 311071: 47678f39d3bc71a40265cee3471e24f51d416b02 v: v3 --- [refs] | 2 +- trunk/sound/soc/tegra/tegra_wm8903.c | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 286613e14c65..7d03c519104c 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 9c699e0a9566cfb6245284ce4857d7a06b02f3b1 +refs/heads/master: 3419ae781f1592b3d367107db6500090495490cd diff --git a/trunk/sound/soc/tegra/tegra_wm8903.c b/trunk/sound/soc/tegra/tegra_wm8903.c index 0b0df49d9d33..3b6da91188a9 100644 --- a/trunk/sound/soc/tegra/tegra_wm8903.c +++ b/trunk/sound/soc/tegra/tegra_wm8903.c @@ -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", @@ -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,