No headphone jack output after re-plugging headphones

Title says it all. This is a new issue (not sure after which update). My headphones are correctly selected as Output in the “Sound” Settings but no sound coming out.

The only solution I’ve found so far (on the internet) is to run alsactl restore but I don’t want to have to do that every time I re-plug my headphones!

How do I fix this?