At the beginning my headphones didn't work. In Settings/Sound the only output device is the pair of speakers. After having tried certain commands related to another question I have installed
pavucontrol but now my headphones work in parallel with the speakers. Maybe pavucontrol is not the best idea but I don't know.
I would like to have my headphones behave correctly i.e. when I insert the jack the audio is switched from the speakers to the headphones.
How can I fix this problem?
My ubuntu version is 20.10.