On my TOSHIBA Z930 Notebook the following setting does the trick under FreeBSD 11
(providing sound-output for a TV-set using HDMI):
...unit=0: internal speaker
...unit=1: headphone socket
Tom.
(providing sound-output for a TV-set using HDMI):
sysctl hw.snd.default_unit=2
...unit=0: internal speaker
...unit=1: headphone socket
Tom.