Charles Keepax 783513eec3 ASoC: Use nested lock for snd_soc_dapm_mutex_lock
snd_soc_dapm_mutex_lock currently uses the un-nested call which can
cause lockdep warnings when called from control handlers (a relatively
common usage) and using modules. As creating the control causes a
potential mutex inversion with the handler, creating the control will
take the controls_rwsem under the dapm_mutex and accessing the control
will take the dapm_mutex under controls_rwsem.

All the users look like they want to be using the runtime class of the
lock anyway, so this patch just changes snd_soc_dapm_mutex_lock to use
the nested call, with the SND_SOC_DAPM_CLASS_RUNTIME class.

Fixes: f6d5e586b416 ("ASoC: dapm: Add helpers to lock/unlock DAPM mutex")
Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2015-12-30 16:48:13 +00:00
..
2011-08-17 00:53:54 +09:00
2011-05-19 14:10:45 -07:00
2014-05-05 18:20:22 -07:00
2015-10-02 18:11:27 +01:00
2012-09-28 14:21:54 +01:00
2005-04-16 15:20:36 -07:00
2015-02-02 14:42:42 +01:00
2006-03-22 10:24:57 +01:00
2008-11-17 11:45:39 +00:00
2010-10-18 16:46:27 -07:00
2011-02-14 17:10:11 +01:00
2006-01-03 12:18:06 +01:00
2015-05-22 16:01:44 +02:00
2015-10-28 11:42:22 +01:00
2015-02-02 14:42:43 +01:00
2014-07-04 18:50:51 +01:00
2015-07-09 12:00:11 +01:00
2014-04-18 18:52:18 +01:00
2015-03-11 12:08:20 +00:00
2005-04-16 15:20:36 -07:00
2012-12-24 15:57:20 +00:00
2014-09-15 15:52:03 +02:00
2011-09-20 16:02:16 +01:00
2009-12-18 13:06:47 +00:00
2011-08-08 14:30:37 +09:00
2010-04-30 16:12:44 +01:00