step_1:
change to be root user.
step_2:
if (earphone)
# sysctl -w hw.snd.default_unit=0
if (speaker)
# sysctl -w hw.snd.default_unit=1
step_1:
change to be root user.
step_2:
if (earphone)
# sysctl -w hw.snd.default_unit=0
if (speaker)
# sysctl -w hw.snd.default_unit=1