ASoC: tegra: tegra_wm8903: Support nvidia, headset property
authorDmitry Osipenko <digetx@gmail.com>
Mon, 30 Mar 2020 20:40:11 +0000 (23:40 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jun 2020 15:50:08 +0000 (17:50 +0200)
commit30e82a3edd9475a78cadabe22ad2d4899a14fa71
treed1f52dfa708d2820c1d8df97042e4f1dcc4fb969
parent7b139b714a5d6f0a4fd1f23d85ba09d756f1967a
ASoC: tegra: tegra_wm8903: Support nvidia, headset property

[ Upstream commit 3ef9d5073b552d56bd6daf2af1e89b7e8d4df183 ]

The microphone-jack state needs to be masked in a case of a 4-pin jack
when microphone and ground pins are shorted. Presence of nvidia,headset
tells that WM8903 CODEC driver should mask microphone's status if short
circuit is detected, i.e headphones are inserted.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Link: https://lore.kernel.org/r/20200330204011.18465-3-digetx@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/tegra/tegra_wm8903.c