analog-output-headphones.conf should have higher priority than analog-output-speaker.conf
I'm not completely sure if this is unique for my card, but with default priorities (speaker - 100, headphones - 99), when I plug in headphones the sound is still going to speakers. Unless I give headphones higher priority (e.g. 101) or lower the speakers priority below 99.
My specs are:
Dell XPS13 9369
pipewire and pipewire-pulse v0.3.21
DE: KDE Plasma 5.20.5
lspci | grep -i audio
00:1f.3 Audio device: Intel Corporation Sunrise Point-LP HD Audio (rev 21)
`pactl list sinks | grep analog
Name: alsa_output.pci-0000:00:1f.3.analog-stereo Monitor Source: alsa_output.pci-0000:00:1f.3.analog-stereo.monitor device.profile.name = "analog-stereo" node.name = "alsa_output.pci-0000:00:1f.3.analog-stereo" analog-output-speaker: Speakers (type: Speaker, priority: 10000, availability group: Legacy 3, availability unknown) analog-output-headphones: Headphones (type: Headphones, priority: 10100, availability group: Legacy 2, availability unknown)
(This is after I increased the priority for headphones)
I couldn't found any other way to make pipewire to switch to headphones ones they plugged in, so I assume that provided alsa-card-profiles has incorrect priorities for builtin audio card.