Sound setup – freebsd.

Sound in freebsd

Firstly check which driver is suitable for your audio card.

As it is described there [http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/sound-setup.html] try to load right module: kldload snd_driver or kldload snd_hda

Information about your card can be grabbed from /dev/sndstat file or dmesg command.

cat /dev/sndstat

Installed devices:
pcm0:  (play)
pcm1:  (play/rec) default
pcm2:  (play/rec)
pcm3:  (play)
pcm4:  (play)

or

dmesg | grep pcm
 
pcm0:  at nid 3 on hdaa0
pcm1:  at nid 20 and 18 on hdaa1
pcm2:  at nid 21 and 24,25 on hdaa1
pcm3:  at nid 30 on hdaa1
pcm4:  at nid 27 on hdaa1

In my case it is Realtek ALC888 sound card and

 kldload snd_driver

works fine

To add module while system starting additional information should be added to /boot/loader.conf or /boot/defaults/loader.conf. In my case the following line should persist

snd_driver_load="YES"

Test sound card simply by command:

 cat filename > /dev/sdp

Default volume set at system boot can be set in /boot/device.hints file, for example:

hint.pcm.0.vol="50"

Although volume can also be set from command line by command mixer, example:

 mixer --without option show current volume
 mixer vol 75  --change vol to 75%
No Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Free(BSD)
Search for duplicated files

This will be short (but hopefully I will find more time to show entire process to search duplicated files together with some examples). In case you are searching for duplicated files I can recommend two software which actually rocks in openSource world

Azure
NFS issue, cannot be mounted or is not visible

The same kind of issue I have encountered numerous times while working across different environments and with various customers. The problem with NFS mounts connected from remote locations is so common. This issue extends beyond communication solely over WAN and also include connections between datacenters (DC) where we lack control …

Free(BSD)
Converting MOV File to Smaller Size: A Guide to Converting to MP4

If, like me, you happen to be recording your desktop, which is quite simple and convenient on any current operating system (including ChromeOS or MacOS), sooner or later you may run into a disk space issue. From time to time, when I’m working on new configurations or playing around with …