No audio on Asus UX5304VA across multiple distros and audio devices

Hey everyone,
I’m pretty new to linux but I have some experience, and I’ve been trying to make this work for the past 3 days. I am on a dual boot setup with MX linux and win11 right now. The problem is, my computer refuses to make any sound come out of it when running Linux (win11 still works). Built-in speakers, speakers through USB and USB-c and bluetooth speakers all do not work. The audio slider moves when sound should be there, but nothing comes out.

I have messed around with pulseaudio and alsa trying to find if anything is muted, but everything is as it should be. I have also tried switching distros (MX linux, Mint debian edition, Manjaro), all of them had the same issue. Changing to a older or newer kernel has no effect.
Other fixes that I’ve tried and didn’t work:

https://github.com/badgers-ua/asus_zenbook_ux5304va_sound
https://www.linux.org/threads/solved-asus-zenbook-15-ux534f-realtek-hd-audio-problem.27384/
Updating BIOS
Running from a live USB

Some more info about my setup:


Output of neofetch:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@   palach@MXkanon 
@@@@@@@@@@@@%*+--:------=+*%@@@@@@@@@@@@   -------------- 
@@@@@@@@@#=. .-+#%@@@@@%#*+--=#@@@@@@@@@   OS: MX x86_64 
@@@@@@@+. .=%@@@@@@@@@@@@@@@@*-:+@@@@@@@   Host: Zenbook S 13 UX5304VA_UX5304VA 1.0 
@@@@@*.  *@@@@@@@@@@@@@@@@@@@@@%-.*@@@@@   Kernel: 6.9.12-2-liquorix-amd64 
@@@@-  -@@@@@@@@@@@@@@@@@@@@@@@#:  -@@@@   Uptime: 1 hour, 42 mins 
@@@:  -@@@@@@@=.*@@@@@@@@@@@@%-   = :@@@   Packages: 2513 (dpkg) 
@@=  .@@@@@@@@%- :%@@@@@@@@@+   -%@# =@@   Shell: bash 5.2.15 
@%   +@@@@@@@@@@#. =@@@@@@*.  .*@@@@. %@   Resolution: 2880x1800 
@+   *@@@@@@*..*@@+  *@@%-   =@@@@@@- +@   DE: Plasma 5.27.5 
@=   *@@@@%-    -%@@- :=   -%@@@@@@@: +@   WM: KWin 
@+   :@@@=        +@@=   .#@@@@@@@@%  *@   Theme: Breeze [GTK2/3] 
@%    +*.          .:     *@@#: +@@:  @@   Icons: Papirus-Dark [GTK2/3] 
@@+                   :%@- :-    ::  +@@   Terminal: yakuake 
@@@-                  .=@@=         -@@@   CPU: 13th Gen Intel i5-1335U (12) @ 2.501GHz 
@@+.                     .           +@@   GPU: Intel Raptor Lake-P [Iris Xe Graphics] 
%=..:.................::...........:..-%   Memory: 5957MiB / 15612MiB 
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Output of lspci -v  | grep -i audio:

0000:00:1f.3 Multimedia audio controller: Intel Corporation Device 51ca (rev 01)
       Kernel driver in use: sof-audio-pci-intel-tgl

Output of aplay -l:

**** List of PLAYBACK Hardware Devices ****
card 0: sofhdadsp [sof-hda-dsp], device 0: HDA Analog (*) []
 Subdevices: 0/1
 Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 3: HDMI1 (*) []
 Subdevices: 1/1
 Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 4: HDMI2 (*) []
 Subdevices: 1/1
 Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 5: HDMI3 (*) []
 Subdevices: 1/1
 Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 31: HDA Analog Deep Buffer (*) []
 Subdevices: 1/1
 Subdevice #0: subdevice #0

There are reports of this issue being consistent across this range of laptops from ASUS. Some people say that a kernel upgrade fixed the issue for them, but it didn’t for me.

Thank you for any help, I am getting kind of desperate now.

Hello,

Please try some the following sollutions:

  1. Install SOF firmware:

    sudo apt update
    sudo apt install firmware-sof-signed
    
  2. Blacklist old driver:

    echo "blacklist snd_hda_intel" | sudo tee /etc/modprobe.d/blacklist-snd-hda-intel.conf
    
  3. Check PulseAudio:
    Run pavucontrol and set the correct profile under the “Configuration” tab.

  4. Reload ALSA:

    sudo alsa force-reload
    
  5. BIOS Settings: Make sure audio is enabled in the BIOS.

Let me know if it helps! If not please provide output of the following command:
$ sudo dmesg | grep -i audio

Lubos

Hello,
Thank you for your reply. I followed your steps but got stuck on number 4. When I first ran the command, it gave me no output for several minutes, so I interrupted it with ctrl+c. The next time I ran it:

$ sudo alsa force-reload
sudo: alsa: command not found

I remember having a similar problem with alsa in the past and trying to fix it somehow, but I’m not sure.
Also here is the output of the last command if it helps:

$ sudo dmesg | grep -i audio
[    7.427781] sof-audio-pci-intel-tgl 0000:00:1f.3: enabling device (0000 -> 0002)
[    7.428068] sof-audio-pci-intel-tgl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if 0x040100
[    7.428169] sof-audio-pci-intel-tgl 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[    7.435287] sof-audio-pci-intel-tgl 0000:00:1f.3: use msi interrupt mode
[    7.492773] sof-audio-pci-intel-tgl 0000:00:1f.3: hda codecs found, mask 5
[    7.492781] sof-audio-pci-intel-tgl 0000:00:1f.3: using HDA machine driver skl_hda_dsp_generic now
[    7.492785] sof-audio-pci-intel-tgl 0000:00:1f.3: DMICs detected in NHLT tables: 2
[    7.495755] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware paths/files for ipc type 0:
[    7.495758] sof-audio-pci-intel-tgl 0000:00:1f.3:  Firmware file:     intel/sof/sof-rpl.ri
[    7.495760] sof-audio-pci-intel-tgl 0000:00:1f.3:  Topology file:     intel/sof-tplg/sof-hda-generic-2ch.tplg
[    7.495857] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware info: version 2:2:0-57864
[    7.495859] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware: ABI 3:22:1 Kernel ABI 3:23:0
[    7.495862] sof-audio-pci-intel-tgl 0000:00:1f.3: unknown sof_ext_man header type 3 size 0x30
[    7.592615] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware info: version 2:2:0-57864
[    7.592621] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware: ABI 3:22:1 Kernel ABI 3:23:0
[    7.604253] sof-audio-pci-intel-tgl 0000:00:1f.3: Topology: ABI 3:22:1 Kernel ABI 3:23:0
[    7.630344] snd_hda_codec_realtek ehdaudio0D0: autoconfig for ALC294: line_outs=1 (0x17/0x0/0x0/0x0/0x0) type:speaker
[    7.630350] snd_hda_codec_realtek ehdaudio0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    7.630352] snd_hda_codec_realtek ehdaudio0D0:    hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
[    7.630354] snd_hda_codec_realtek ehdaudio0D0:    mono: mono_out=0x0
[    7.630355] snd_hda_codec_realtek ehdaudio0D0:    inputs: