ASoC: rt5645: read jd1_1 status for jd detection
authorBard Liao <bardliao@realtek.com>
Wed, 28 Jun 2017 12:49:36 +0000 (14:49 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 28 Jun 2017 17:33:30 +0000 (18:33 +0100)
commit6b5da66322c50b4fa22f9343dcb968496f831361
tree348b60bfc238377edb76c3677dff7cd26de02b4d
parent2ea659a9ef488125eb46da6eb571de5eae5c43f6
ASoC: rt5645: read jd1_1 status for jd detection

Read the jd status after invert control. The benefit is we don't need
to invert the reading jd status when jd invert is needed.

Signed-off-by: Bard Liao <bardliao@realtek.com>
Tested-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5645.c