ASoC: Intel: sof_es8336: ignore GpioInt when looking for speaker/headset GPIO lines
authorAndrey Turkin <andrey.turkin@gmail.com>
Mon, 25 Jul 2022 19:49:03 +0000 (14:49 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 25 Jul 2022 21:37:06 +0000 (22:37 +0100)
commit751e77011f7a43a204bf2a5d02fbf5f8219bc531
tree491c607ede5ecc6bd5271d257432010c68a9e558
parent5e60f1cfb830342304200437121f440b72b54f54
ASoC: Intel: sof_es8336: ignore GpioInt when looking for speaker/headset GPIO lines

This fixes speaker GPIO detection on machines those ACPI tables
list their jack detection GpioInt before output GpioIo.
GpioInt entry can never be the speaker/headphone amplifier control
so it makes sense to only look for GpioIo entries when looking for them.

Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Andrey Turkin <andrey.turkin@gmail.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20220725194909.145418-5-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/sof_es8336.c