ASoC: dapm: Fix deadlock on auto-disable mux controls
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Fri, 26 Jun 2015 09:39:43 +0000 (10:39 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 26 Jun 2015 11:46:55 +0000 (12:46 +0100)
commitffacb48e5a4665d3d7286babb38a5af855a36bc0
treeafb9f0ec0d5faaa947a4d05d265408c23d95f85d
parent11e688862c4c8162119a4ca51c3326555966c8bb
ASoC: dapm: Fix deadlock on auto-disable mux controls

The commit 02aa78abec6e ("ASoC: DAPM: Add APIs to create individual DAPM
controls.") added locking to the snd_soc_dapm_new_control function but
did not update the call to snd_soc_dapm_new_control in the auto-disable
mux code, this appears to be because the patches were sent at fairly
similar times.

This patch change the call in the auto-disable mux code to use the new
snd_soc_dapm_new_control_unlocked function instead.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-dapm.c