]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit24b199c48eeec14cc001432c61ab4bb3633a1bc1
tree491c607ede5ecc6bd5271d257432010c68a9e558
parent94c79dcd5814df35ca3b9cb21f645e23ba3099e4
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