ASoC: rt5645: Add jack detection workaround for GPD Win
authorTakashi Iwai <tiwai@suse.de>
Wed, 28 Jun 2017 12:49:39 +0000 (14:49 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 28 Jun 2017 17:33:31 +0000 (18:33 +0100)
commitea2b5a6e3a386b89d7f9148ff8be6c78d13542a0
treea9968864d11180f7344f139874d5a9bd1ddac30f
parentaea086dda2d5df659a7c5d9efe85721e9442a133
ASoC: rt5645: Add jack detection workaround for GPD Win

GPD Win requires jd_mode=3 and the inverted flag for making the jack
detection working.  Unfortunately, the BIOS doesn't give a nice way to
match with DMI strings, and the only working way so far is to match
with the board vendor/name/version/date to some known patterns.

Hopefully other vendors won't do such a stupid setup, too...

Thanks to Hans de Goede for the DMI matching suggestion.

Suggested-by: Hans de Goede <hdegoede@redhat.com>
Tested-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5645.c