]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: codecs: rt5682: initialize mutex before using
authorXun Zhang <xun2.zhang@intel.com>
Fri, 19 Apr 2019 20:53:49 +0000 (15:53 -0500)
committerMark Brown <broonie@kernel.org>
Thu, 25 Apr 2019 18:41:58 +0000 (19:41 +0100)
commitc8c571c831477ce6223f109f7af1b190b08de650
tree9ab380eb7edd01124aaffb8c587960205eeebcba
parent6fe66b8cc933d89a1f83e695d8a2dbf0a68f766f
ASoC: codecs: rt5682: initialize mutex before using

In rt5682 codec driver, a mutex called "calibrate_mutex" is used
in rt5682_calibrate() before initialization, which causes warning
in lock debug. Move the initialization before the usage of mutex.

Signed-off-by: Xun Zhang <xun2.zhang@intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5682.c