OSDN Git Service

ASoC: rt5677: move jack-detect init to i2c probe
authorFletcher Woodruff <fletcherw@chromium.org>
Fri, 14 Jun 2019 19:48:52 +0000 (13:48 -0600)
committerMark Brown <broonie@kernel.org>
Mon, 17 Jun 2019 15:12:45 +0000 (16:12 +0100)
commit241800642ea3482ab3f80a2a3662e9f2e6a82208
treec2076a011be8fef3372adc790e4dc6cc3b363644
parent8893cba2fa6994ac8434cbc616eeddcde211ec45
ASoC: rt5677: move jack-detect init to i2c probe

This patch moves the code to select the gpios for jack detection
from rt5677_probe to rt5677_init_irq (called from rt5677_i2c_probe).

It also sets some registers to fix bugs related to jack detection, and
adds some constants and comments to make it easier to understand what
certain register settings are controlling.

Signed-off-by: Ben Zhang <benzh@chromium.org>
Signed-off-by: Fletcher Woodruff <fletcherw@chromium.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5677.c
sound/soc/codecs/rt5677.h