ASoC: rt5663: Check the JD status in the resume function
authorOder Chiou <oder_chiou@realtek.com>
Mon, 12 Jun 2017 03:02:17 +0000 (11:02 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 13 Jun 2017 18:32:08 +0000 (19:32 +0100)
In the suspend, the IRQ function will not work in some machines. So the JD
status should be checked in the resume function.

Signed-off-by: Oder Chiou <oder_chiou@realtek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5663.c

index 8569e8c7d89402ae986ab63d53dd76d62161663a..a33202affeb123aca338303d9d9c61bd7d5f5f39 100644 (file)
@@ -2847,6 +2847,8 @@ static int rt5663_resume(struct snd_soc_codec *codec)
        regcache_cache_only(rt5663->regmap, false);
        regcache_sync(rt5663->regmap);
 
+       rt5663_irq(0, rt5663);
+
        return 0;
 }
 #else