DragonFly BSD

HowToSound

HowtoSound

The first step is to figure out if DragonFly supports your sound card.

As root:

# kldload snd_driver
# cat /dev/sndstat

If it found your sound device it might say something like this:

FreeBSD Audio Driver (newpcm)
Installed devices:
pcm0: <Intel 82801G High Definition Audio Controller> at memory 0xdfef8000 irq 3 snd_hda [20061009_0031] (1p/1r/0v channels duplex)

My device is supported and it is using the snd_hda module. So now(still as root):

# kldunload snd_driver
# kldload snd_hda
# cd /dev
# sh MAKEDEV snd0

If I want my sound devices loaded on boot I should add the following lines to /boot/loader.conf:

sound_load="YES"
snd_hda_load="YES"

And that's it, sound now works.