IPv4 Address:-
IPv6 Address:-
Service Provider:-
SSL Information:-
HTTP Protocol:-
Loading soundcard drivers in FreeBSD [26/Sep/2010]   Using 'ee' to edit files in FreeBSD     Updating the ports tree in FreeBSD 8  

By default, FreeBSD does not load any sound card drivers for you.

However, almost all soundcards are supported.  First you need to identify your soundcard.  You can do this with:

pciconf -lv | more Copy

This shows a list of PCI devices in your system.  You are looking for a device which has a "class" of "multimedia".

Mine, for example, shows the following:

none0@pci0:0:27:0:      card=0x022e1028 chip=0x284b8086 rev=0x02 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Intel audio controller embedded with the 82801H chipset ( ICH8 chipset ) (82801H)'
    class      = multimedia
    subclass   = HDA Copy

If "subclass" says "HDA" (most new soundcards do) then the driver you will need later is snd_hda.  If not, most likely you will want the snd_ich driver.  If your system is really old, you may need another driver – check the list of drivers available by typing:

ls -al /boot/kernel/snd_*.ko Copy

and select the one that looks most promising.

To test the driver is correct, we need to manually load it.  Do this with the following command:

kldload snd_hda Copy

(substitute snd_hda with your required driver)

If all is well, your console screen (or type tail /var/log/messages if you're not using the console – e.g. if you're using SSH) will show a few messages about "pcm".  If the driver is incorrect, nothing will be shown.

If you're happy with your selection, we need to tell FreeBSD to load the driver on boot every time.  Edit the file /boot/loader.conf and add:

snd_hda_load="YES" Copy

If you're using another driver (e.g. snd_ich) then alter the above line to match the driver name followed by _load="YES"

Everytime you reboot, your computer will load the driver automatically.

  Using 'ee' to edit files in FreeBSD     Updating the ports tree in FreeBSD 8  
Copyright © 2023 Daniel Austin MBCS.
Proudly hosted using the FreeBSD operating system.
E-mail me
E-mail me
padlock icon
LOGIN ERROR#123: random error here