% cat /dev/sndstat
Installed devices:
pcm0: <Realtek ALC897 (Rear Analog)> (play/rec) default
pcm1: <Realtek ALC897 (Front Analog)> (play/rec)
pcm2: <Realtek ALC897 (Internal Digital)> (play)
pcm3: <Intel (0x2818) (HDMI/DP 8ch)> (play)
No devices installed from userspace.
Set the preferred default audio output.
% sysctl hw.snd.default_unit=1
hw.snd.default_unit: 0 -> 1
It can be made persistant across reboots.
# echo "hw.snd.default_unit=1" >> /etc/sysctl.conf