Skip to content

[BUG] sof_es8336: Huawei MateBook D 15 BOHB-WAX9 (M1280) speakers silent, needs SPEAKERS_EN_GPIO1 #5985

Open

Description

@bondank

Hardware

  • Huawei MateBook D 15, sys_vendor HUAWEI, product_name BOHB-WAX9, product_version M1280, board_name BOHB-WAX9-PCB-B2
  • BIOS 1.45 (01/17/2023)
  • Intel Core i3-10110U (Comet Lake), PCH-LP audio 8086:02c8, ES8336 (ESSX8336)
  • Kernel 7.2.8 (linux-omarchy, Arch based), SOF firmware 2.2.0, topology sof-cml-es8336-dmic2ch-ssp0.tplg

Problem

With the kernel's existing quirk for BOHB-WAX9-PCB-B2, which resolves to 0x1a0 on this machine (DMIC, headphone GPIO, headset mic on MIC1), the internal speakers are completely silent. The Speaker sink and controls look normal.

Workaround

options snd_soc_sof_es8336 quirk=0x1b0 makes the speakers work:

sof-essx8336 sof-essx8336: Overriding quirk 0x1a0 => 0x1b0
sof-essx8336 sof-essx8336: quirk mask 0x1b0
sof-essx8336 sof-essx8336: quirk SSP0
sof-essx8336 sof-essx8336: quirk DMIC enabled
sof-essx8336 sof-essx8336: Speakers GPIO1 quirk enabled
sof-essx8336 sof-essx8336: quirk headphone GPIO enabled
sof-essx8336 sof-essx8336: quirk headset at mic1 port enabled

So on this unit the speaker amplifier is on GPIO1 and the headphone amplifier on GPIO0, the reverse of the unit the 2022 quirk was written for ("gpio0 controls the speaker output; gpio1 controls the headphone output"), and of the M1120 in #5899, whose speakers work on 0x1a0.

Not tested yet: the headphone jack and the microphones, as I have no headphones at hand.

Suggestion

Several versions share BOHB-WAX9-PCB-B2 (M1120 in #5899, M1200, M1280 here), so a more specific DMI entry ahead of the existing one, e.g. also matching DMI_PRODUCT_VERSION "M1280", with SOF_ES8336_SPEAKERS_EN_GPIO1_QUIRK | SOF_ES8336_HEADPHONE_GPIO | SOC_ES8336_HEADSET_MIC1. I can't tell whether the difference follows the hardware version or the BIOS. I'm happy to provide alsa-info, the ACPI tables (DSDT), or test patches.

Downstream report: omacom/omarchy#15825

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions