ASoC: msm: release mutex before calling snd_soc_dapm_sync
When calling snd_soc_dapm_sync(), it eventually tries to lock the same mutex already locked in the machine driver and deadlock might occur because of this. By moving the mutex unlock to just before snd_soc_dapm_sync(), this possible deadlock is prevented. This problem was introduced in Linux 3.5. Reference commit: 2894770e for sound/soc/codecs/tlv320aic3x.c [ASoC: tlv320aic3x: Remove deadlock from snd_soc_dapm_put_volsw_aic3x()] Change-Id: I6291d4dc4d9848fbf3cf5d89c42530343b138255 Signed-off-by:Banajit Goswami <bgoswami@codeaurora.org>
Loading
Please register or sign in to comment