]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbf7f71d19686191a5e06daa56646e3e565980c45
tree9512208d0bf7fb3a7dad83e291ad67ffde933c45
parent481643d1372902314c7354f2805321c1b8e2c7fa
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