* [PATCH RESEND] ASoC: Intel: sof_es8336: fix headphone GPIO logic inversion
@ 2026-01-21 15:24 Tagir Garaev
2026-01-28 3:02 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Tagir Garaev @ 2026-01-21 15:24 UTC (permalink / raw)
To: broonie
Cc: cezary.rojewski, pierre-louis.bossart, liam.r.girdwood,
peter.ujfalusi, linux-sound, Tagir Garaev
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>
---
sound/soc/intel/boards/sof_es8336.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/intel/boards/sof_es8336.c b/sound/soc/intel/boards/sof_es8336.c
index 774fff58d..fce50fd9f 100644
--- a/sound/soc/intel/boards/sof_es8336.c
+++ b/sound/soc/intel/boards/sof_es8336.c
@@ -120,7 +120,7 @@ static void pcm_pop_work_events(struct work_struct *work)
gpiod_set_value_cansleep(priv->gpio_speakers, priv->speaker_en);
if (quirk & SOF_ES8336_HEADPHONE_GPIO)
- gpiod_set_value_cansleep(priv->gpio_headphone, priv->speaker_en);
+ gpiod_set_value_cansleep(priv->gpio_headphone, !priv->speaker_en);
}
--
2.52.0
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH RESEND] ASoC: Intel: sof_es8336: fix headphone GPIO logic inversion
2026-01-21 15:24 [PATCH RESEND] ASoC: Intel: sof_es8336: fix headphone GPIO logic inversion Tagir Garaev
@ 2026-01-28 3:02 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2026-01-28 3:02 UTC (permalink / raw)
To: Tagir Garaev
Cc: cezary.rojewski, liam.r.girdwood, peter.ujfalusi, linux-sound,
Pierre-Louis Bossart
On Wed, 21 Jan 2026 18:24:35 +0300, Tagir Garaev wrote:
> 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.
>
> [...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: Intel: sof_es8336: fix headphone GPIO logic inversion
commit: 213c4e51267fd825cd21a08a055450cac7e0b7fb
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-01-28 3:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-21 15:24 [PATCH RESEND] ASoC: Intel: sof_es8336: fix headphone GPIO logic inversion Tagir Garaev
2026-01-28 3:02 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox