ASoC: rt5640: Add support for boards with an external jack-detect GPIO
authorHans de Goede <hdegoede@redhat.com>
Thu, 6 Jan 2022 11:01:26 +0000 (12:01 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 6 Jan 2022 13:55:50 +0000 (13:55 +0000)
commit701d636a224a77a4371f57ca2d4322ab0401a866
tree9512208d0bf7fb3a7dad83e291ad67ffde933c45
parentb35a9ab4904973a68b4473c2985b8ac0b6d57089
ASoC: rt5640: Add support for boards with an external jack-detect GPIO

Some boards have the codec IRQ hooked-up as normally, so the driver can
still do things like headset vs headphones and button-press detection,
but instead of using one of the JD pins of the codec, an external GPIO
is used to report the jack-presence switch status of the jack.

Add support for this.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20220106110128.66049-5-hdegoede@redhat.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5640.c
sound/soc/codecs/rt5640.h