[Solved] Pulseaudio randomly switches audio device

noavolution

New Member
Joined
Jun 20, 2021
Messages
5
Reaction score
0
Credits
143
Hi,

when I open spotify or open a youtube video, pulseaudio forgets my current audio device and changes it to another one (In most cases the onboard audio. My main headset is connected to an amp over USB). It has worked flawlessly before with that amp. When I deactivate all devices except my headset, it changes to dummy-output. If I then pause the playback for a second, it will change back to normal. But I have to do that every time I start a playback. I have already deactivated "load-module module-switch-on-port-available" and "load-module module-switch-on-connect" in /etc/pulse/default.pa. But It didn't help.
 


Hmm...

I have no idea what the problem is. I'd install ksystemlog (as it's easier), trigger the change, and then check the logs to see if there's something in there that clues me in.
 
Hmm...

I have no idea what the problem is. I'd install ksystemlog (as it's easier), trigger the change, and then check the logs to see if there's something in there that clues me in.
After I open spotify and start a song I get this spammed into the logs (I made the font smaller so the rows are displayed more correctly. I also translated the line "The device or the resource is busy" from german to english. I hope its not a problem)

21.06.21 00:34 pulseaudio Error opening PCM device front:3: The device or the resource is busy
21.06.21 00:34 pulseaudio Error opening PCM device front:3: The device or the resource is busy
21.06.21 00:34 [email protected] Unable to get default sink
21.06.21 00:34 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:34 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:34 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:34 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:34 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:34 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:34 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:34 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:34 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:34 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:34 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:34 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:34 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:34 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:34 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:34 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:34 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:34 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:34 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:34 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:34 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:34 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:34 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:34 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:34 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:34 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:34 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:34 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:34 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:34 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:34 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:34 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:34 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:34 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:34 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:34 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:35 [email protected] Unable to get default sink
21.06.21 00:35 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:35 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:35 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:35 pulseaudio Error opening PCM device front:3: The device or the resource is busy
21.06.21 00:35 pulseaudio Error opening PCM device front:3: The device or the resource is busy
21.06.21 00:35 pulseaudio Error opening PCM device front:3: The device or the resource is busy
21.06.21 00:35 pulseaudio Error opening PCM device front:3: The device or the resource is busy
21.06.21 00:35 telegramdesktop.desktop AL lib: (EE) ALCpulsePlayback_streamStateCallback: Received stream failure!
21.06.21 00:35 [email protected] Unable to get default sink
21.06.21 00:35 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:35 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:35 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:35 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:35 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:35 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:35 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:35 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:35 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:35 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:35 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:35 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:35 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:35 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:35 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:35 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:35 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:35 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:35 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:35 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:35 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:35 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:35 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:35 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:35 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:35 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:35 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:35 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:35 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:35 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:35 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:35 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:35 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:35 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:35 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:35 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:35 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:35 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:35 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:35 pulseaudio Failed to find a working profile.
21.06.21 00:35 pulseaudio Failed to load module "module-alsa-card" (argument: "device_id="3" name="usb-FiiO_K3-00" card_name="alsa_card.usb-FiiO_K3-00" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes avoid_resampling=no card_properties="module-udev-detect.discovered=1""): initialization failed.
21.06.21 00:35 pulseaudio Failed to find a working profile.
21.06.21 00:35 pulseaudio Failed to load module "module-alsa-card" (argument: "device_id="3" name="usb-FiiO_K3-00" card_name="alsa_card.usb-FiiO_K3-00" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes avoid_resampling=no card_properties="module-udev-detect.discovered=1""): initialization failed.
21.06.21 00:35 [email protected] Unable to get default sink
21.06.21 00:35 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:35 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:35 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:35 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:35 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:35 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:35 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:35 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:35 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:35 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:35 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:35 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:35 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:35 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:35 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:35 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:35 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:35 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:35 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:35 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
21.06.21 00:35 [email protected] gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
 
At this point in time, I have no idea.

What's the version of Linux you're using - including the distro's version itself, such as Kubuntu 20.04 or Lubuntu 21.04?
 
I have seen something like this when I have two different sound devices.

1624247895783.png


For example I have a built in analog controller, and a digital (HDMI) controller.

I can telect specific applications which one to use.

1624248132279.png


I might have VLC use one, and have totem use the other.
Do the applications you are using have specific audio devices assigned to them?
 
At this point in time, I have no idea.

What's the version of Linux you're using - including the distro's version itself, such as Kubuntu 20.04 or Lubuntu 21.04?
Its Pop!_OS 20.10 with Kernel 5.11.0-7614-generic
 
I have seen something like this when I have two different sound devices.

View attachment 9569

For example I have a built in analog controller, and a digital (HDMI) controller.

I can telect specific applications which one to use.

View attachment 9570

I might have VLC use one, and have totem use the other.
Do the applications you are using have specific audio devices assigned to them?
No I haven't assigned specific deices to applications. Here are some screenshots of pavucontrol. If I have to translate anything let me know. And what software are you using for your audio preferences?

Bildschirmfoto vom 2021-06-21 16-09-51.png
Bildschirmfoto vom 2021-06-21 16-10-30.png
Bildschirmfoto vom 2021-06-21 16-10-44.png
Bildschirmfoto vom 2021-06-21 16-11-14.png
 
Sorry for the delay. I was otherwise engaged last night and unable to get back to you.

Try this link:

 
Sorry for the delay. I was otherwise engaged last night and unable to get back to you.

Try this link:

For now this seems to have fixed it. I'll reach out to you again if it proceeds to happen. Thank you very much!
 


Top