All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Make headphone work on Huawei Matebook D15
@ 2022-04-05  8:44 ` Mauro Carvalho Chehab
  0 siblings, 0 replies; 16+ messages in thread
From: Mauro Carvalho Chehab @ 2022-04-05  8:44 UTC (permalink / raw)
  To: Pierre-Louis Bossart
  Cc: Cezary Rojewski, alsa-devel, Bard Liao, Jie Yang, Takashi Iwai,
	Liam Girdwood, Hans de Goede, Mark Brown, Mauro Carvalho Chehab,
	Péter Ujfalusi, linux-kernel

At Huawei Matebook D15 two different GPIOs are used to control the output:
	- gpio0 controls the speaker output;
	- gpio1 controls the headphone output.

Changing both at the same time cause spurious events that are mis-interpreted
as input events, causing troubles on apps. So, a delay is needed before turning
on such gpios.

With this patch, plugging a headphone causes a jack event to trigger the speaker
supply, powering down the speaker and powering up the headphone output.
Removing the headphone also triggers the power supply, powering up the speaker
and powering down the headphone.

Mauro Carvalho Chehab (2):
  ASoC: Intel: sof_es8336: support a separate gpio to control headphone
  ASoC: Intel: sof_es8336: Huawei Matebook D15 uses a headphone gpio

 sound/soc/intel/boards/sof_es8336.c | 68 ++++++++++++++++++++++++-----
 1 file changed, 58 insertions(+), 10 deletions(-)

-- 
2.35.1



^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2022-04-06  0:51 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-05  8:44 [PATCH v2 0/2] Make headphone work on Huawei Matebook D15 Mauro Carvalho Chehab
2022-04-05  8:44 ` Mauro Carvalho Chehab
2022-04-05  8:44 ` [PATCH v2 1/2] ASoC: Intel: sof_es8336: support a separate gpio to control headphone Mauro Carvalho Chehab
2022-04-05  8:44   ` Mauro Carvalho Chehab
2022-04-05 14:57   ` Pierre-Louis Bossart
2022-04-05 14:57     ` Pierre-Louis Bossart
2022-04-05 15:37     ` Mauro Carvalho Chehab
2022-04-05 15:37       ` Mauro Carvalho Chehab
2022-04-05  8:44 ` [PATCH v2 2/2] ASoC: Intel: sof_es8336: Huawei Matebook D15 uses a headphone gpio Mauro Carvalho Chehab
2022-04-05  8:44   ` Mauro Carvalho Chehab
2022-04-05  9:00 ` [PATCH v2 0/2] Make headphone work on Huawei Matebook D15 Hans de Goede
2022-04-05  9:00   ` Hans de Goede
2022-04-05 13:48   ` Mauro Carvalho Chehab
2022-04-05 13:48     ` Mauro Carvalho Chehab
2022-04-05 13:56     ` Hans de Goede
2022-04-05 13:56       ` Hans de Goede

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.