Weird bug: Headphones sound muffled/underwater after boot until unplugged and replugged

Hello everyone!

I have an Acer Nitro Lite 16 laptop with the following specs:

  • CPU: Intel Core i5-13420H (13th gen, Raptor Lake)

  • GPU: NVIDIA GeForce RTX 3050 6GB

  • Audio chip: Realtek ALC256

  • OS: Ubuntu 25.10

  • Kernel: 6.17.0-19-generic

  • Audio driver: sof-hda-dsp (SOF)

  • Audio server: PipeWire 1.0.x

Problem:

Every time I boot the laptop with headphones plugged in, the sound is muffled/underwater - voices are barely intelligible.

Also during boot (splash screen with Ubuntu logo first 1-3 seconds) I hear strange clicking sounds in the headphones (or it’s mic or something).

The only fix is to unplug and replug the headphones after the Ubuntu has fully loaded - then the sound becomes perfectly clear immediately.

Audio on the laptop without headphones sounds without any issues, so it’s issue with plugged headphones during boot time.

Card info:

  • Card: alsa_card.pci-0000_00_1f.3-platform-skl_hda_dsp_generic

  • Active Profile: HiFi (HDMI1, HDMI2, HDMI3, Headphones, Mic1, Mic2)

  • ALSA components: HDA:10ec0256,1025187d,00100002

My initial thoughts:

It seems like the headphone jack / codec is being initialized incorrectly at boot time, even during the first 1-3 seconds of the boot splash screen I can hear strange clicking sounds in the headphones, which suggests the hardware is not being set up properly from the very beginning.

Once the OS is fully loaded, if I unplug and replug the headphones, the sound immediately becomes perfect. This makes me think the jack detection event on replug triggers a correct re-initialization of the codec. Is there a way to fix the codec/jack initialization at boot level so the headphones work correctly from the start without having to replug them every time?

Any help is appreciated. Thank you!