OSDN Git Service

ASoC: Intel: bytcr_rt5640: Add support for external GPIO jack-detect
authorHans de Goede <hdegoede@redhat.com>
Thu, 6 Jan 2022 11:01:28 +0000 (12:01 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 6 Jan 2022 13:55:52 +0000 (13:55 +0000)
commit44125fd5315154c6b8326b5c27646af3b33ba25c
treea7205e8b2f0406e0a7a8be17a93c0df3935d61b3
parent45ed0166c39f878162872babc88830d91426beb5
ASoC: Intel: bytcr_rt5640: Add support for external GPIO jack-detect

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 boards which have this setup and which specify which
external GPIO to use in the special Android AMCR0F28 ACPI device.

And add a quirk for the Asus TF103C tablet which uses this setup.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20220106110128.66049-7-hdegoede@redhat.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/bytcr_rt5640.c