ASoC: rt700: wait for the delayed work to finish when the system suspends
authorShuming Fan <shumingf@realtek.com>
Mon, 21 Sep 2020 09:42:44 +0000 (17:42 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 21 Sep 2020 19:40:51 +0000 (20:40 +0100)
commit5f2df2a4583b0d7b85054f0c1820f11a01936d35
tree2f9f891f6fddf82c683dd2b6e70e7354ed678a27
parent244ac15de75ca62ed7a09c7291b67aeead9e12ac
ASoC: rt700: wait for the delayed work to finish when the system suspends

To avoid the IO error, we need to cancel the delayed work and wait for it to finish.

Signed-off-by: Shuming Fan <shumingf@realtek.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20200921094244.31869-1-shumingf@realtek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt700-sdw.c