How to deactivate headphones output

In HP Presario CQ6 has a curious problem in Mint 18. Even if default output is set to speaker, voices comes out when is selected Analog Jack output. The fix is to install alsa-tools-gui and deactive Analog Jack output

sudo apt-get install alsa-tools-gui