This question already has an answer here:
I know how to use
amixer to send output to either the headphone jack or the HDMI port, but I want to send output to BOTH devices. How can I accomplish this?
I'm using official Wheezy Raspbian on a Raspberry Pi model B+.