ASoC: rt5645: Introduce mapping for ACPI-defined GPIO
authorChris Chiu <chiu@endlessos.org>
Mon, 11 Jan 2021 05:41:38 +0000 (13:41 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 11 Jan 2021 14:03:07 +0000 (14:03 +0000)
commit21f603482a6bdc4e7481f5a8e0e4b654d8d6e3a3
treebea252a572007777beaf6a863848322d3ad080f6
parent31c51a424f5163ee6f14fcc251f81078457123e1
ASoC: rt5645: Introduce mapping for ACPI-defined GPIO

On at least one laptop (ECS EF20EA) the 'hp-detect' GPIO is defined in
the DSDT table by the ACPI GpioIo resources in _CRS. The GPIO related
information should be mapped to the rt5645 driver to enable the jack
detection also on non-DT platforms.

Signed-off-by: Chris Chiu <chiu@endlessos.org>
Link: https://lore.kernel.org/r/20210111054141.4668-2-chiu@endlessos.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5645.c