ASoC: tegra+wm8903: turn of mic detect when card is removed
authorStephen Warren <swarren@nvidia.com>
Mon, 11 Jun 2012 17:27:19 +0000 (11:27 -0600)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 12 Jun 2012 03:38:48 +0000 (11:38 +0800)
commit3419ae781f1592b3d367107db6500090495490cd
treecdf058925b8126d184fd6dfaa003e2128ca730de
parent9c699e0a9566cfb6245284ce4857d7a06b02f3b1
ASoC: tegra+wm8903: turn of mic detect when card is removed

If mic detect is left enabled and the WM8903 detects a status change,
the WM8903 driver will make a callback against the free()d jack, which
will cause a crash.

This problem can be triggered by fully initializing an audio card, then
removing and re-inserting the machine driver module.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/tegra/tegra_wm8903.c