]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: tlv320aic3x: Remove deadlock from snd_soc_dapm_put_volsw_aic3x()
authorAndreas Irestål <Andreas.Irestal@axis.com>
Wed, 5 Jun 2013 06:49:47 +0000 (08:49 +0200)
committerMark Brown <broonie@linaro.org>
Fri, 7 Jun 2013 16:57:16 +0000 (17:57 +0100)
commit38f837f0c08ee436f00bc8b6ab2fc7715d919ddf
tree1879513352d6fd27d96f9e1168839dccf46f4150
parent7fc920272f7df653d00ba3dc68a59b6f17342855
ASoC: tlv320aic3x: Remove deadlock from snd_soc_dapm_put_volsw_aic3x()

When calling snd_soc_dapm_sync(), it eventually tries to lock the same mutex
already locked in snd_soc_dapm_put_volsw_aic3x() and a deadlock occurs. By
moving the mutex unlock to just before snd_soc_dapm_sync(), this deadlock is
prevented. This problem was introduced in Linux 3.5

Signed-off-by: Andreas Irestål <Andreas.Irestal@axis.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/codecs/tlv320aic3x.c