]> 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)
commitc7f4ee3d33f49aff127300d670779fff4e98e17d
treeb20e2b99c10fa7cf8670974fb823ecf5aca4c040
parentb4869799f5374d3b5e55d29b7419f9593f15e479
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