Skip to content

broken speakers on Infinix X2 Plus (es8336 card) after kernel version 6.18.8 #5672

@Abhinav5383

Description

@Abhinav5383

Hi,
The recent linux-kernel (6.18.9) breaks audio on my laptop and I have tracked the issue down to this commit. This commit was to fix the issue of sound playing on speakers even when headphones were attached, but why did it break sound on my device?

Turns out that the gpio pin that the driver thinks is headphone-enable needs to be active in order for the speaker to work. When that pin is inactive the speaker doesn't work even if the speakers-enable pin is set active, but this conflicts with the change done in that commit.

This sound card has been problematic since start (#5406). But enabling the SOF_ES8336_HEADPHONE_GPIO quirk made speakers work in the past but now sound doesn't come back after a suspend (idle, mute, output profie switch). It needs a complete reboot to get working sound again.
After plugging-in and out headphone once, even the headphone stops working but it starts working after doing a profile reset while plugged in.

System info:

  Infinix Inbook X2 Plus
  Intel tiger lake i3 1115G4
  Codec: es8326
  Board driver (in use): es8336
  Motherboard: EM_TG325_200B_V1.0
  Serial Number: 0205972290801918

  Arch Linux
  linux 6.18.9
  Pipewire 1.4.10

My current (temporary) fix is a dkms pkg to override the sound driver.

I've tried enabling SOF_ES8336_SPEAKERS_EN_GPIO1_QUIRK so that the gpio pins of the headphone and speakers will be reversed (sof_es8336#L732) thinking that the current mapping might be incorrect but the behaviour remains the same plus it breaks headphone audio.
With the commit reverted, SOF_ES8336_SPEAKERS_EN_GPIO1_QUIRK doesn't change anything. The speaker works correctly, plugging in headphones switches the audio correctly.

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