Skip to content

Commit 64af6a2

Browse files
committed
ASoC: es8336: Add support for Huawei Matebook 14 2021
This notebook also requires quirks as BIOS is incorrect for speaker/headset GPIOs. According with _DSM: [ 4.027413] es8316 i2c-ESSX8336:00: PLATFORM_HPDET_INV_ARG=0x1 However, jack is not inverted on this device. The speaker/headphone output on this device is: speaker gpio 0 active high, headphone gpio 1 active low However, _DSM reports only: [ 4.030564] es8316 i2c-ESSX8336:00: SPK_CTL_IO_LEVEL_ARG=0x1 Missing information about headphone active on low. Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent 1e44863 commit 64af6a2

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

sound/soc/intel/boards/sof_es8336.c

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,14 +308,25 @@ static const struct dmi_system_id sof_es8336_quirk_table[] = {
308308
{
309309
.callback = sof_es8336_quirk_cb,
310310
.matches = {
311-
DMI_MATCH(DMI_SYS_VENDOR, "HUAWEI"),
311+
DMI_MATCH(DMI_SYS_VENDOR, "HUAWEI"), /* Matebook D15 2020 */
312312
DMI_MATCH(DMI_BOARD_NAME, "BOHB-WAX9-PCB-B2"),
313313
},
314314
.driver_data = (void *)(SOF_ES8336_SPEAKERS_EN_GPIO1_QUIRK |
315315
SOF_ES8336_JD_NOT_INVERTED |
316316
SOF_ES8336_OVERRIDE_DSM_LOW_HIGH |
317317
SOF_ES8336_HP_EN_LOW)
318318

319+
},
320+
{
321+
.callback = sof_es8336_quirk_cb,
322+
.matches = {
323+
DMI_MATCH(DMI_SYS_VENDOR, "HUAWEI"), /* Matebook 14 2021 */
324+
DMI_MATCH(DMI_BOARD_NAME, "NBD-WXX9-PCB-B3"),
325+
},
326+
.driver_data = (void *)(SOF_ES8336_JD_NOT_INVERTED |
327+
SOF_ES8336_OVERRIDE_DSM_LOW_HIGH|
328+
SOF_ES8336_HP_EN_LOW)
329+
319330
},
320331
{}
321332
};

0 commit comments

Comments
 (0)