ASoC: rt298: disable IRQ when jack is NULL
authorBard Liao <bardliao@realtek.com>
Mon, 28 Nov 2016 05:24:06 +0000 (13:24 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 29 Nov 2016 11:36:27 +0000 (11:36 +0000)
commite3d62cb8c70ff5ff946051484b1cdb38523d8b95
treefe23440c3cfc66382d895fba352b1c263401d02e
parent1001354ca34179f3db924eb66672442a173147dc
ASoC: rt298: disable IRQ when jack is NULL

Disable IRQ when jack is NULL in rt298_mic_detect. So machine driver
can use it in suspend/resume.

Signed-off-by: Bard Liao <bardliao@realtek.com>
Reviewed-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt298.c