]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
committerMarcelo Henrique Cerri <marcelo.cerri@canonical.com>
Fri, 17 Jan 2020 17:22:40 +0000 (14:22 -0300)
commitf0e1b901fb43d5df7dd0ff8ca16e2ea393308dda
treeef504eb869d79d0975f5288a37773948874d9de4
parent685685625e72f56bd3beaac83f13043fa49cb887
ASoC: rockchip: rockchip_max98090: Enable SHDN to fix headset detection

BugLink: https://bugs.launchpad.net/bugs/1855306
[ Upstream commit 07c1b73e2a027ea9a52677beeb6a943a3e357139 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Connor Kuehl <connor.kuehl@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
sound/soc/rockchip/rockchip_max98090.c