Quickly switch sound output from HDMI to Headphone jack OS X 10.10.5
If you enable the "Show volume in menu bar" option from System Preferences -> Sound, you can quickly change default input/output devices by holding alt and clicking the volume icon in the menu bar.

(Note: I'm no sure in which version this was introduced, but I think it's already in 10.10.5)