diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-06-25 04:52:59 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-06-25 04:52:59 -0400 |
commit | d1e16c1a61d68692dba346f4a841315343b085f4 (patch) | |
tree | 249ec07d1489769fe83b4ec507708455cc0c5138 /sound/soc/tegra/tegra_wm8903.c | |
parent | 1573ee81cb9ef24fa5acee6b7442e215e63ede2f (diff) | |
parent | 6b16351acbd415e66ba16bf7d473ece1574cf0bc (diff) |
Merge tag 'v3.5-rc4' into for-3.6
Linux 3.5-rc4 contains some bug fixes which overlap with new features.
Diffstat (limited to 'sound/soc/tegra/tegra_wm8903.c')
-rw-r--r-- | sound/soc/tegra/tegra_wm8903.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sound/soc/tegra/tegra_wm8903.c b/sound/soc/tegra/tegra_wm8903.c index 08b5fef67b31..0c5bb33d258e 100644 --- a/sound/soc/tegra/tegra_wm8903.c +++ b/sound/soc/tegra/tegra_wm8903.c | |||
@@ -213,6 +213,17 @@ static int tegra_wm8903_init(struct snd_soc_pcm_runtime *rtd) | |||
213 | return 0; | 213 | return 0; |
214 | } | 214 | } |
215 | 215 | ||
216 | static int tegra_wm8903_remove(struct snd_soc_card *card) | ||
217 | { | ||
218 | struct snd_soc_pcm_runtime *rtd = &(card->rtd[0]); | ||
219 | struct snd_soc_dai *codec_dai = rtd->codec_dai; | ||
220 | struct snd_soc_codec *codec = codec_dai->codec; | ||
221 | |||
222 | wm8903_mic_detect(codec, NULL, 0, 0); | ||
223 | |||
224 | return 0; | ||
225 | } | ||
226 | |||
216 | static struct snd_soc_dai_link tegra_wm8903_dai = { | 227 | static struct snd_soc_dai_link tegra_wm8903_dai = { |
217 | .name = "WM8903", | 228 | .name = "WM8903", |
218 | .stream_name = "WM8903 PCM", | 229 | .stream_name = "WM8903 PCM", |
@@ -233,6 +244,8 @@ static struct snd_soc_card snd_soc_tegra_wm8903 = { | |||
233 | .dai_link = &tegra_wm8903_dai, | 244 | .dai_link = &tegra_wm8903_dai, |
234 | .num_links = 1, | 245 | .num_links = 1, |
235 | 246 | ||
247 | .remove = tegra_wm8903_remove, | ||
248 | |||
236 | .controls = tegra_wm8903_controls, | 249 | .controls = tegra_wm8903_controls, |
237 | .num_controls = ARRAY_SIZE(tegra_wm8903_controls), | 250 | .num_controls = ARRAY_SIZE(tegra_wm8903_controls), |
238 | .dapm_widgets = tegra_wm8903_dapm_widgets, | 251 | .dapm_widgets = tegra_wm8903_dapm_widgets, |