ASoC: rt5682-sdw: fix locking sequence
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Mon, 25 Mar 2024 22:18:12 +0000 (17:18 -0500)
committerMark Brown <broonie@kernel.org>
Thu, 28 Mar 2024 19:31:07 +0000 (19:31 +0000)
commit310a5caa4e861616a27a83c3e8bda17d65026fa8
treeb3efc4bbaed282c8a08fd4cc1573c43070f83567
parent3849c4d6c6b3da898d92edafd5e2b0e2baaabb61
ASoC: rt5682-sdw: fix locking sequence

The disable_irq_lock protects the 'disable_irq' value, we need to lock
before testing it.

Fixes: 02fb23d72720 ("ASoC: rt5682-sdw: fix for JD event handling in ClockStop Mode0")
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Chao Song <chao.song@linux.intel.com>
Link: https://msgid.link/r/20240325221817.206465-2-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5682-sdw.c