ASoC: rt5645: polling jd status in all conditions
authorBard Liao <bardliao@realtek.com>
Thu, 5 May 2016 03:13:31 +0000 (11:13 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 5 May 2016 12:06:39 +0000 (13:06 +0100)
commit381437dd0bd590902320b97e6512792b075becd4
treec2fe8292b330121c4a52fa7822ed11b68b332d27
parent178ff7c6f3916aff3c3eaaec8636be3b41e93011
ASoC: rt5645: polling jd status in all conditions

We only polling jd status when rt5645->pdata.jd_invert is true.
However, it should be done at all time since there will be no
interrupt for jd if we press a headset button and remove the
headset at the same time.

Signed-off-by: Bard Liao <bardliao@realtek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5645.c