]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit54f0ce0a330a0231186c1801c1b251075531fc51
tree8923e0e60aca973096ae97db142a45b179953f01
parent659e7314b7b55dc83447fd321fc870f968956b52
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