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)
commit01005a729a17ab419f61a366e22f3419e7a2c3fe
treeb20e2b99c10fa7cf8670974fb823ecf5aca4c040
parent32fee7afe763344ef53bbd4e737aa6168a9308aa
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