]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Aug 2022 09:45:50 +0000 (11:45 +0200)
commitabed2fd437f07c8ed53688628800e8ed401aeb60
tree188cbed4f828aa2fa2f6b855fb126a061b8ddf62
parent73626a23b37038e446ba4f0bed1cc1a724e25fc7
ASoC: Intel: sof_es8336: ignore GpioInt when looking for speaker/headset GPIO lines

[ Upstream commit 751e77011f7a43a204bf2a5d02fbf5f8219bc531 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/intel/boards/sof_es8336.c