ASoC: rt5665: calibration should be done before jack detection
authorBard Liao <bardliao@realtek.com>
Thu, 29 Jun 2017 12:07:50 +0000 (20:07 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 30 Jun 2017 11:36:38 +0000 (12:36 +0100)
commitb059ca720e2ac04380240500eb8d8ba931898570
tree8923e0e60aca973096ae97db142a45b179953f01
parent18fe7869764c0b86e8ce6539bbb6e528f1d9928f
ASoC: rt5665: calibration should be done before jack detection

We will set some volatile registers in jack detection function. But
those volatile registers will be clear in rt5665_calibrate function
because we set cache bypass and reset codec in rt5665_calibrate function.
This patch add a flag to make sure that rt5665_calibrate is done
before starting jack detection.

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