How to disable headphone detection?

In a terminal type alsamixer, go to Automute via navigation keys, press up or down and set it to disable. Unfortunately, you will still hear sound from your headphones.