Bug 210971

Summary: Audio profiles changes randomly in every boot (Asus Zenbook 14 UM431D, ALC294 Analog)
Product: Drivers Reporter: Lukas ThyWalls (thywalls)
Component: Sound(ALSA)Assignee: Jaroslav Kysela (perex)
Status: RESOLVED INVALID    
Severity: high    
Priority: P1    
Hardware: x86-64   
OS: Linux   
Kernel Version: 5.10.3-051003-generic Subsystem:
Regression: No Bisected commit-id:
Attachments: KDE Audio Panel options (Kubuntu 20.10 boot disk)
alsa-info output - NoAudio (Off) case
dmesg output - No audio (Off) case
alsa-info output - Stereo + 2.1 case
dmesg output - Stereo + 2.1 case
alsa-info output - Stereo + 2.1 + 4.0 case
dmesg output - Stereo + 2.1 + 4.0 case

Description Lukas ThyWalls 2020-12-30 11:36:18 UTC
Created attachment 294425 [details]
KDE Audio Panel options (Kubuntu 20.10 boot disk)

For sure related to this https://bugzilla.kernel.org/show_bug.cgi?id=209053

As i explain there, i have issues with the volume slider and what speakers are affected depending what audio profile (Stereo, 2.1, 4.0) is selected in the KDE Audio Panel.

Also, i have this issue: Every time i start the computer, the profile options in the KDE Audio Panel changes, sometimes it doesn't appear 4.0, other times don't appear 4.0 and 2.1, other there is only No audio (Off). Also i recall it happened to show only Stereo (Analog Audio Output) and No audio (Off) options, but in these days testing it didn't show that case.
Also, if appears the 2.1 option, for example, it appears the 2.1 + Analog Stereo Input option, but if it No Audio (Off), sometimes there is an Analog Stereo Input Option, and sometimes there isn't any option at all.
Like i said, it only dissapears options in order: if there is no 2.1 option there isn't also a 4.0.

The most noticiable issue with this is every time an option selected in previous session dissapears, the laptop (KDE, VLC, Firefox...) hasn't any audio unless you select a new option in the KDE Audio Panel. Also, if in that start there is only the Off option to Audio Output, you only option is to reboot and see there is an output option.

To point that out, if i use "pasuspender -- aplay -Dplughw:1 example.wav" plays example.wav, although there is only No Audio (off) option in KDE Audio Panel. But any desktop app could have sound until i reboot and select a correct option there. 

To show all the options, i will put a screenshot from KDE Audio Panel Kubuntu 20.10 boot disk (with 5.8.0-25-generic kernel) which this issue doesn't seems to appear because always has all the options (But also appears Analog Stereo Duplex, which never appeared to me again). But when i install Kubuntu 20.10 with that disk to the laptop, and at least with 5.8.0-31-generic Kernel, it began to happen. I also tested this with 5.9.12-050912, 5.10.0-051000rc6 and 5.10.3-051003-generic (all of them installed via Mainline Kernel Installer, the last one is the actual) with the same results.

I'm going to attach alsainfo and dmesg output for every case i have: No audio (Only Off option), Stereo + 2.1, Stereo + 2.1 + 4.0 (It should be this options always). Like i said before, i recall to see a Stereo only case, but it never reproduce in my tests in these days, so i can create an alsainfo and dmesg report to that case.

In comment 9 from the other bug https://bugzilla.kernel.org/show_bug.cgi?id=209053#c9 explains what does the laptop in every profile and how the speakers work (not in a correct way) but i think it's other side from the issue and maybe is related or maybe not. But it could be useful to check it out.

Thanks in advance.
Comment 1 Lukas ThyWalls 2020-12-30 11:37:35 UTC
Created attachment 294427 [details]
alsa-info output - NoAudio (Off) case
Comment 2 Lukas ThyWalls 2020-12-30 11:38:03 UTC
Created attachment 294429 [details]
dmesg output - No audio (Off) case
Comment 3 Lukas ThyWalls 2020-12-30 11:38:46 UTC
Created attachment 294431 [details]
alsa-info output - Stereo + 2.1 case
Comment 4 Lukas ThyWalls 2020-12-30 11:39:16 UTC
Created attachment 294433 [details]
dmesg output - Stereo + 2.1 case
Comment 5 Lukas ThyWalls 2020-12-30 11:40:09 UTC
Created attachment 294435 [details]
alsa-info output - Stereo + 2.1 + 4.0 case
Comment 6 Lukas ThyWalls 2020-12-30 11:40:41 UTC
Created attachment 294437 [details]
dmesg output - Stereo + 2.1 + 4.0 case
Comment 7 Jaroslav Kysela 2020-12-30 15:00:54 UTC
There's no difference in the driver state. It looks like a pulseaudio issue. I would suggest to fill a bug there. Also, don't forget to attach the pulseaudio debug log for the pulseaudio for the working / non-working case:

https://fedoraproject.org/wiki/How_to_debug_PulseAudio_problems

https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/issues