Bug 217409

Summary: Audio stops working in kernel 5.15.71 on ASUS Zenbook
Product: Drivers Reporter: Peter (p.kernel)
Component: Sound(ALSA)Assignee: Jaroslav Kysela (perex)
Status: NEEDINFO ---    
Severity: high CC: regressions
Priority: P3    
Hardware: Intel   
OS: Linux   
Kernel Version: 5.15.71 Subsystem:
Regression: Yes Bisected commit-id:

Description Peter 2023-05-06 20:09:21 UTC
I've been using audio on a ASUS Zenbook for about 2 years now without problems.

I recently switched from kernel 5.15.70 to 5.15.71 - and suddenly I have severe audio problems: playback or record stops after a while, or it stops working when I plugin my headset. Really annoying during web meetings ;-)

I switched back to 5.15.70 and it works.

I saw several other issues with ASUS notebooks here, but in this case this seems to be related to some changes from 70 to 71.


Operating System: Linux Mint 20.3
Kernel Version: 5.15.0-71-generic
Processors: 8 × Intel® Core™ i7-10510U CPU @ 1.80GHz

❯ inxi -MmCA
Machine:   Type: Convertible System: ASUSTeK product: ZenBook UX562FAC_UX562FA v: 1.0 serial: <superuser/root required> 
           Mobo: ASUSTeK model: UX562FAC v: 1.0 UEFI: American Megatrends v: UX562FAC.304 
           date: 05/06/2020 
Memory:    RAM: total: 15.45 GiB used: 8.20 GiB (53.1%) 
CPU:       Topology: Quad Core model: Intel Core i7-10510U bits: 64 type: MT MCP L2 cache: 8192 KiB 
           Speed: 3901 MHz min/max: 400/4900 MHz Core speeds (MHz): 1: 3824 2: 3863 3: 3842 4: 2246 5: 2613 6: 2613 7: 3551 
           8: 3126 
Audio:     Device-1: Intel driver: snd_hda_intel 
           Sound Server: ALSA v: k5.15.0-70-generic 

❯ arecord -l
**** Liste der Hardware-Geräte (CAPTURE) ****
Karte 0: PCH [HDA Intel PCH], Gerät 0: ALC294 Analog [ALC294 Analog]
  Sub-Geräte: 1/1
  Sub-Gerät #0: subdevice #0

❯ aplay -l
**** Liste der Hardware-Geräte (PLAYBACK) ****
Karte 0: PCH [HDA Intel PCH], Gerät 0: ALC294 Analog [ALC294 Analog]
  Sub-Geräte: 1/1
  Sub-Gerät #0: subdevice #0
Karte 0: PCH [HDA Intel PCH], Gerät 3: HDMI 0 [HDMI 0]
  Sub-Geräte: 1/1
  Sub-Gerät #0: subdevice #0
Karte 0: PCH [HDA Intel PCH], Gerät 7: HDMI 1 [HDMI 1]
  Sub-Geräte: 1/1
  Sub-Gerät #0: subdevice #0
Karte 0: PCH [HDA Intel PCH], Gerät 8: HDMI 2 [HDMI 2]
  Sub-Geräte: 1/1
  Sub-Gerät #0: subdevice #0
Karte 0: PCH [HDA Intel PCH], Gerät 9: HDMI 3 [HDMI 3]
  Sub-Geräte: 1/1
  Sub-Gerät #0: subdevice #0
Karte 0: PCH [HDA Intel PCH], Gerät 10: HDMI 4 [HDMI 4]
  Sub-Geräte: 1/1
  Sub-Gerät #0: subdevice #0

❯ lspci -v | grep -i audio
00:1f.3 Audio device: Intel Corporation Device 02c8 (prog-if 80)
Comment 1 Artem S. Tashkinov 2023-05-07 11:25:50 UTC
It'd be great if performed regression testing using git bisect:

https://docs.kernel.org/admin-guide/bug-bisect.html

There are actually very few ALSA related patches between these two kernels so you may as well try building by removing them one by one.
Comment 2 The Linux kernel's regression tracker (Thorsten Leemhuis) 2023-05-08 07:46:05 UTC
5.15.0-71-generic sounds like a vendor kernel that might contain many patches (and might not even be based on 5.15.71). If it is, report the problem to your verdor. If not: 5.15.71 is old, the bug might have been fixed already, hence please try the latest 5.15.y release; and check if things actually worked with earlier vanilla 5.15.y. 

You need to clear the situation up, otherwise the Linux kernel developers will likely will ignore this report.
Comment 3 Peter 2023-05-08 14:33:48 UTC
It is a ubuntu kernel and the latest that is shipped with Linux Mint 20.3.

I tried compiling a newer kernel yesterday (for the first time in my life :-)) but got so many errors, that I stopped after spending some time fixing the first few...

I really would like to try the current kernel.

I guess somewhere in the internet there is documentation how I could use another kernel not included in my distro?

Or I could boot from an USB of some distro that has a newer kernel included.

Any recommendations?
Comment 4 Peter 2023-05-08 14:35:37 UTC
WRT git bisect: as long as I don't manage to compile any kernel, I can't help with bisect (which I didn't use yet) I fear
Comment 5 Peter 2023-05-09 18:46:12 UTC
I also postet the issue at launchpad: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2019013
Comment 6 The Linux kernel's regression tracker (Thorsten Leemhuis) 2023-05-10 09:23:12 UTC
(In reply to Peter from comment #3)
> I really would like to try the current kernel.

This might help:
https://docs.kernel.org/next/admin-guide/quickly-build-trimmed-linux.html

If something doesn't work on your distro, let me know (direct mail is fine).