Message ID | cover.1649357263.git.mchehab@kernel.org (mailing list archive) |
---|---|
Headers | show |
Series | Make headphone work on Huawei Matebook D15 | expand |
On 4/7/22 13:49, Mauro Carvalho Chehab wrote: > 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. For the series: Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Thanks Mauro for your work, much appreciated. > > --- > > 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(-) >
On Thu, 7 Apr 2022 20:49:55 +0200, Mauro Carvalho Chehab wrote: > 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. > > [...] Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/4] ASoC: Intel: sof_es8336: simplify speaker gpio naming commit: 890a4087a6c2045911b5002566d1528f710cd723 [2/4] ASoC: Intel: sof_es8336: support a separate gpio to control headphone commit: 6e1ff1459e0086312e61c2d1ff8b74395a082fcb [3/4] ASoC: Intel: sof_es8336: add a quirk for headset at mic1 port commit: 7c7bb2a059b226ebadb14ce07460f6357023d56c [4/4] ASoC: Intel: sof_es8336: Add a quirk for Huawei Matebook D15 commit: c7cb4717f641db68e8117635bfcf62a9c27dc8d3 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
On Thu, 7 Apr 2022 20:49:55 +0200, Mauro Carvalho Chehab wrote: > 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. > > [...] Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/4] ASoC: Intel: sof_es8336: simplify speaker gpio naming commit: 890a4087a6c2045911b5002566d1528f710cd723 [2/4] ASoC: Intel: sof_es8336: support a separate gpio to control headphone commit: 6e1ff1459e0086312e61c2d1ff8b74395a082fcb [3/4] ASoC: Intel: sof_es8336: add a quirk for headset at mic1 port commit: 7c7bb2a059b226ebadb14ce07460f6357023d56c [4/4] ASoC: Intel: sof_es8336: Add a quirk for Huawei Matebook D15 commit: c7cb4717f641db68e8117635bfcf62a9c27dc8d3 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