]> git.ipfire.org Git - thirdparty/linux.git/commit
ASoC: Intel: sof_es8336: fix headphone GPIO logic inversion
authorTagir Garaev <tgaraev653@gmail.com>
Wed, 21 Jan 2026 15:24:35 +0000 (18:24 +0300)
committerMark Brown <broonie@kernel.org>
Tue, 27 Jan 2026 12:45:47 +0000 (12:45 +0000)
commit213c4e51267fd825cd21a08a055450cac7e0b7fb
tree1c3a11edac06a88aa98c24572f04100c455f9d57
parent9502b7df5a3c7e174f74f20324ac1fe781fc5c2d
ASoC: Intel: sof_es8336: fix headphone GPIO logic inversion

The headphone GPIO should be set to the inverse of speaker_en.
When speakers are enabled, headphones should be disabled and vice versa.

Currently both GPIOs are set to the same value (speaker_en), causing
audio to play through both speakers and headphones simultaneously
when headphones are plugged in.

Tested on Huawei Matebook (BOD-WXX9) with ES8336 codec.

Fixes: 6e1ff1459e00 ("ASoC: Intel: sof_es8336: support a separate gpio to control headphone")
Signed-off-by: Tagir Garaev <tgaraev653@gmail.com>
Link: https://patch.msgid.link/20260121152435.101698-1-tgaraev653@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/sof_es8336.c