Friday, May 2, 2008

Audio

One of the main problems I hear about from New FreeBSD users is the lack of audio. This isn't linux it's unix so of course it can't be ease lol :) but there is a relativley easy way to get audio to work.
We will let the kernel try to detect.
#kldload snd_driver
You will see the device pop up as the kernel goes through all supported audio, Next you have to find out what audio driver you will need.
#cat /dev/sndstat
You will get output like this
FreeBSD Audio Driver (newpcm: 64bit 2007061600/amd64)
Installed devices:
pcm0: at memory 0xb0000000 irq 22 kld snd_hda {20071129_0050} (1p:1v/1r:1v channels duples default)
So now we unload all the sound drivers
#kldunload snd_driver
We just load the one we need now
#kldload snd_hda
Now we have sound but I'm pretty sure you'll want the sound loaded at startup so we will have to edit the loader.conf (I use nano by default vi is installed)
#nano /boot/loader.conf
now we have to add two lines
sound_load="YES"
snd_hda_load="YES"
Save and exit and when you start your computer you will have audio

No comments: