ASoC: es8316: Add support for inverted jack detect
authorPaul Cercueil <paul@crapouillou.net>
Fri, 29 Mar 2019 21:50:43 +0000 (22:50 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 1 Apr 2019 08:32:09 +0000 (15:32 +0700)
commit0bbcedd6bb41b82b77115fc001441ff34e7c4ea7
tree87b54036b92bc61f16f185fde54c7bd34c2c8e13
parent5a79acf9a9188d85e1f1a697ed7531e0f0f36943
ASoC: es8316: Add support for inverted jack detect

On some devices (Teclast X98+ II tablet, maybe others), the jack
detection has been wired backwards, so when the ES8316 reports
headphones being present it means they are actually not plugged.

Use a quirk around this incorrect behaviour, which can be enabled
through the 'everest,jack-detect-inverted' boolean device property.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/es8316.c