]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: dapm: Fix locking during codec shutdown
authorLiam Girdwood <lrg@ti.com>
Fri, 6 Jul 2012 15:57:05 +0000 (16:57 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 6 Jul 2012 17:58:46 +0000 (18:58 +0100)
commitfcfd062b8576832afd4e6b3f66eb62f71cc4c1e9
treeb20e2b99c10fa7cf8670974fb823ecf5aca4c040
parent0e0ab40bb620b4aaef04d0420998a16b9c5578f4
ASoC: dapm: Fix locking during codec shutdown

Codec shutdown performs a DAPM power sequence that might cause conflicts
and/or race conditions if another stream power event is running simultaneously.
Use card's dapm mutex to protect any potential race condition between them.

Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
Signed-off-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: stable@vger.kernel.org
sound/soc/soc-dapm.c