summaryrefslogtreecommitdiff
path: root/sound/soc/soc-core.c
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2022-04-08 14:08:37 +0300
committerMark Brown <broonie@kernel.org>2022-04-08 14:08:37 +0300
commitaa70527d36d74db80a1c40e792f5320ab56e6eae (patch)
tree4364a70bfef4bde8ff54949161cc07393ba1753f /sound/soc/soc-core.c
parent92ccbf17eeacf510cf1eed9c252d9332ca24f02d (diff)
parentc7cb4717f641db68e8117635bfcf62a9c27dc8d3 (diff)
downloadlinux-aa70527d36d74db80a1c40e792f5320ab56e6eae.tar.xz
Make headphone work on Huawei Matebook D15
Merge series from Mauro Carvalho Chehab <mchehab@kernel.org>: 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.
Diffstat (limited to 'sound/soc/soc-core.c')
0 files changed, 0 insertions, 0 deletions