]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: rockchip: rockchip_max98090: Enable SHDN to fix headset detection
authorCheng-Yi Chiang <cychiang@chromium.org>
Mon, 28 Oct 2019 09:52:29 +0000 (17:52 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 28 Oct 2019 13:11:21 +0000 (13:11 +0000)
commit3dc4ba2067f2accfedb28e2cc2b136bb10cd671c
tree871d903b2f52efe1f9c6258f5572ffb0574178e7
parentb993a2e82184d120dd4b5b0618a08b0b9cbe602f
ASoC: rockchip: rockchip_max98090: Enable SHDN to fix headset detection

max98090 spec states that chip needs to be in turned-on state to supply
mic bias. Enable SHDN dapm widget along with MICBIAS widget to
actually turn on mic bias for proper headset button detection.
This is similar to cht_ti_jack_event in
sound/soc/intel/boards/cht_bsw_max98090_ti.c.

Note that due to ts3a227e reports the jack event right away before the
notifier is registered, if headset is plugged on boot, headset button
will not get detected until headset is unplugged and plugged. This is
still an issue to be fixed.

Signed-off-by: Cheng-Yi Chiang <cychiang@chromium.org>
Link: https://lore.kernel.org/r/20191028095229.99438-1-cychiang@chromium.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/rockchip/rockchip_max98090.c