Output to the headphones
By default it appears that the default output of the sound is automatic, it means that if HDMI supports audio it will use it.
To change the audio output:
sudo amixer -c 0 cset numid=3 <output>
where <output> can be: