View Single Post
  #1   (View Single Post)  
Old 1st May 2008
corey_james corey_james is offline
Uber Geek
 
Join Date: Apr 2008
Location: Brisbane, Australia
Posts: 238
Default Sound on FreeBSD

Setting sound up on FreeBSD is quite simple and well documented but here's a simple how-to.

There are two ways to add sound support to FreeBSD - compile the driver into the kernel or dynamically load the driver. I'll just detail the latter as it's faster and easier.

First you will need to load the driver, if you know the driver name, you can load it straight away. If not, load the whole lot and hope one binds.

Depending which version of FreeBSD you are running it will be :
# kldload snd
or
# kldload snd_driver

If you have loaded all the sound drivers with the above command, you can see the specific driver you have loaded by doing the following

#cat /dev/sndstat
FreeBSD Audio Driver (newpcm: 32bit 2007061600/i386)
Installed devices:
pcm0: <VIA VT8237> at io 0xb400 irq 22 kld snd_via8233 [MPSAFE] (5p:1v/1r:1v channels duplex default)

In this case snd_via8233 is the driver being used.

To make sure this driver loads on boot, you'll need to edit /boot/loader.conf. In this case i would put the following in this file:
snd_via8233_load="YES"

If you want all the drivers to load ( for whatever reason ) you can put the following in loader.conf
snd_driver_load="YES"

References:
http://www.freebsddiary.org/sound.php
http://www.freebsd.org/doc/en_US.ISO...und-setup.html

* Note: if anyone notices any errors in this how-to, please correct them
Reply With Quote