ASoC: rt5645: Headphone Jack sense inverts on the LattePanda board
authorHui Wang <hui.wang@canonical.com>
Mon, 29 Apr 2019 03:44:07 +0000 (11:44 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 2 May 2019 02:36:35 +0000 (11:36 +0900)
commit406dcbc55a0a20fd155be889a4a0c4b812f7c18e
tree4237ad23c98061d85201d6b0d4c27f35cd443c18
parent903c220b1ece12f17c868e43f2243b8f81ff2d4c
ASoC: rt5645: Headphone Jack sense inverts on the LattePanda board

The LattePanda board has a sound card chtrt5645, when there is nothing
plugged in the headphone jack, the system thinks the headphone is
plugged in, while we plug a headphone in the jack, the system thinks
the headphone is unplugged.

If adding quirk=0x21 in the module parameter, the headphone jack can
work well. So let us fix it via platform_data.

https://bugs.launchpad.net/bugs/182459
Signed-off-by: Hui Wang <hui.wang@canonical.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5645.c