]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb85b158981724368da7779ae3f317e9fed64181a
treec2076a011be8fef3372adc790e4dc6cc3b363644
parent3315475688e34bb0b786fdf406b8c126a0c94576
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