alsa-project / alsa-lib

The Advanced Linux Sound Architecture (ALSA) - library
GNU Lesser General Public License v2.1
366 stars 177 forks source link

Very unstable and broken after audio device switching, reboots, multimedia app usage etc etc etc #127

Closed sector7digital closed 3 years ago

sector7digital commented 3 years ago

To me this seems to be a huge issue for years now. Running Ubuntu 20.10 very latest. I'm using an Astro A50 and two HDMI Displays for playing audio plus there's two more outputs I'm not really using. But as soon as the computer ran a little long (yes, that's actually enough to cause problems, probably due to certain apps like Unreal engine and games!), came out of sleep or I switch playback devices (which I'm doing very often and that shouldnt be ANY issue), things get seriously mixed up. Suddenly the routing goes all wrong (i select one output device, another plays instead, or just no sound at all). Sometimes "no sound" problem gets fixed by just switching devices about 10-20! times until sound is back (it either works or doesn't but that it starts working again after ten times switching devices is very weird behavior). Reinstalling as well as resetting alsa doesn't do anything to remedy no sound, restarting computer doesn't fix sound problems, only switching devices ten times does! Alsa Mixer doesn't show any controls for my A50, yet it often works even if some profiles are to low volume and the one that has good volume there I can't hear audio that comes from behind me (I have the no sound issue also on my HDMI outputs, just saying). Pavucontrol on the other hand lists my A50 but doesn't show one of my HDMI displays. I mean what is going wrong here (for years)??? I mean I found forum posts about these issues that reach back years in time -.- When will we have proper working audio where audio device switching on linux is possible without any problems and the sound doesn't just "give up" after some time?

maybe someone should create one all including audio software system structure instead of several packages that are unable to work together properly... can't be that two apps (pavucontrol and pulseaudio) that work on top on alsa show different devices and settings to begin with

perexg commented 3 years ago

If you have an issue, try to describe it seriously to get it fixed. One by one.

sector7digital commented 3 years ago

i'd say i pretty much described it all... and ye, it's not about a simple single error message that needs fixing, you see that correctly. the routing is problematic, the routing including those "profiles" (ubuntu calls it "configuration") get mixed up, suddenly profiles are even attached to devices they don't belong to and then it comes to the no sound at all anymore issue, just USE IT YOURSELF. It's really not hard to repeat this! and I have reset/reinstalled etc everything to the last file.

perexg commented 3 years ago

The profiles are managed by the pulseaudio or pipewire. We cannot do much here. You can do tests with the direct ALSA devices, then we can work on the fix.