Skip to content

Make headphone work on Huawei Matebook D15

Mauro Carvalho Chehab alsa-devel lkml 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest4 patches 3 repliesIn review
  2. v44 patches 2 repliesSuperseded
  3. v33 patches 1 replySuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v2 posting 2/22 patches0 repliesSuperseded
v2 posting 1/22 patches5 repliesSuperseded
v1 RFC2 patches0 repliesSuperseded

Changes in v5 from the cover letter

- dropped an uneeded differential mux from the boards driver.

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4ASoC: Intel: sof_es8336: simplify speaker gpio namingsound/soc/intel/boards/sof_es8336.c+21 -210 replies
2/4ASoC: Intel: sof_es8336: support a separate gpio to control headphonesound/soc/intel/boards/sof_es8336.c+49 -100 replies
3/4ASoC: Intel: sof_es8336: add a quirk for headset at mic1 portsound/soc/intel/boards/sof_es8336.c+16 -30 replies
4/4ASoC: Intel: sof_es8336: Add a quirk for Huawei Matebook D15sound/soc/intel/boards/sof_es8336.c+9 -00 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchHans de GoedePierre-Louis Bossart
SeriesA-b
1/4
2/4A-b
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [PATCH v5 0/4] Make headphone work on Huawei Matebook D15

Huawei Matebook D15 uses 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.

Also, the headset microphone is connected to MIC1, instead of MIC2 port.

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.

The headset microphone also works.

---

v5:
- dropped an uneeded differential mux from the boards driver.

v4:
- add support for headset microphone on MIC1 port.

v3:
- add a patch changing GPIO quirk speaker naming. Patch 2 got rebased on the top of it.

Mauro Carvalho Chehab (3):
ASoC: Intel: sof_es8336: support a separate gpio to control headphone
ASoC: Intel: sof_es8336: add a quirk for headset at mic1 port
ASoC: Intel: sof_es8336: Add a quirk for Huawei Matebook D15

Pierre-Louis Bossart (1):
ASoC: Intel: sof_es8336: simplify speaker gpio naming

 sound/soc/intel/boards/sof_es8336.c | 117 +++++++++++++++++++++-------
 1 file changed, 89 insertions(+), 28 deletions(-)
Signature · 1 line
2.35.1