Firefox starts playing new audio streams in wrong device

Here is how default pulseaudio settings look after I removed all config files and restarted PA: image

Should I try and unmute Built-in Audio Analog Stereo (I have to choose "Headphones" for sound to appear, even though they are marked as "unplugged" and speakers are not), I have the sound for exactly one song in Firefox, and when another starts, Firefox changes to playing in HDMI: image

I disabled HDMI in config and then it all became just fine (that is being said, pulseaudio doesn't really have to choose from any sound devices because there is only one.. don't think this is intended behaviour). But then I needed to create some new sound devices (for my RNNoise microphone noise cancelling) and again the problem came back (this time Firefox always plays sound in "Null Output"), configuration looking like this: image. I find it rather strange that I have two devices selected simultaneously. Auto-Mute is disabled. How can I set my sweet Built-in Audio Analog Stereo to being default, and moreover, why something marked as "unplugged" plays sound and something that is not marked doesn't?


Solution 1:

sudo alsactl restore seemed to do the trick, although I had to select "speakers" and not "headphones (unplugged)" and also it must be done every time on boot.