]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4dc1e52345e6daf68f89389ab2535e5673cdf6c4
treecdf058925b8126d184fd6dfaa003e2128ca730de
parent7007f7ddb3b1ecb81ef9251c429f5ec48d87f52a
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