linux/sound/soc/intel
Tagir Garaev a1ad7bbeaf ASoC: Intel: sof_es8336: Add DMI quirk for Huawei BOD-WXX9
[ Upstream commit 6b641122d3 ]

Add DMI entry for Huawei Matebook D (BOD-WXX9) with HEADPHONE_GPIO
and DMIC quirks.

This device has ES8336 codec with:
- GPIO 16 (headphone-enable) for headphone amplifier control
- GPIO 17 (speakers-enable) for speaker amplifier control
- GPIO 269 for jack detection IRQ
- 2-channel DMIC

Hardware investigation shows that both GPIO 16 and 17 are required
for proper audio routing, as headphones and speakers share the same
physical output (HPOL/HPOR) and are separated only via amplifier
enable signals.

RFC: Seeking advice on GPIO control issue:

GPIO values change in driver (gpiod_get_value() shows logical value
changes) but not physically (debugfs gpio shows no change). The same
gpiod_set_value_cansleep() calls work correctly in probe context with
msleep(), but fail when called from DAPM event callbacks.

Context information from diagnostics:
- in_atomic=0, in_interrupt=0, irqs_disabled=0
- Process context: pipewire
- GPIO 17 (speakers): changes in driver, no physical change
- GPIO 16 (headphone): changes in driver, no physical change

In Windows, audio switching works without visible GPIO changes,
suggesting possible ACPI/firmware involvement.

Any suggestions on how to properly control these GPIOs from DAPM
events would be appreciated.

Signed-off-by: Tagir Garaev <tgaraev653@gmail.com>
Link: https://patch.msgid.link/20260201121728.16597-1-tgaraev653@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2026-02-19 16:29:53 +01:00
..
atom ASoC: Intel: sst: Fix used of uninitialized ctx to log an error 2024-10-28 16:44:52 +00:00
avs ASoC: Intel: avs: Disable periods-elapsed work when closing PCM 2025-11-13 15:33:57 -05:00
boards ASoC: Intel: sof_es8336: Add DMI quirk for Huawei BOD-WXX9 2026-02-19 16:29:53 +01:00
catpt ASoC: Intel: catpt: Fix error path in hw_params() 2025-12-18 13:55:10 +01:00
common ASoC: Intel: sof-function-topology-lib: Print out the unsupported dmic count 2025-07-17 18:37:15 +02:00
keembay ASoC: intel: fix module autoloading 2024-08-26 15:52:06 +01:00
Kconfig ASoC: Intel: Remove skylake driver 2024-08-19 13:10:55 +01:00
Makefile ASoC: Intel: Remove skylake driver 2024-08-19 13:10:55 +01:00