geekvenue.net

Welcome to Chucktips Hardware HELP WITH DEAD OS Installing FreeBSD Miscellaneous
 faq
 search
 add article
 cool-stuff
 how-to
 main
 tips


HOWTO: Install Audio Support
Multimedia Posted by Jason on Saturday March 31, @11:59PM
from the Sounds-Like-Fun dept.
When you first install FreeBSD, there is no audio support. If you want to play mp3's and other audio files, you need to either compile audio support into your kernel, or download 3rd party drivers.

[Purchase Drivers]
If you have never compiled a kernel and your just not ready to tackle it, or your audio card is not supported by FreeBSD, you may want to purchase 3rd party audio drivers and install them from a simple install script. Keep in mind that these drivers will cost money, $15.00-$60.00 USD. You can acquire the drivers from 4Front Technologies.

[Compile Your Own]
If you have a PNP audio card that is supported by FreeBSD, compiling it in the kernel is easy. To find out what cards are supported check the Release Notes. If you have not yet compiled a kernel, you should take a moment and read the HOW-TO: Compile a Custom Kernel.

[PNP Audio Drivers]
Audio cards that support PNP are nice because you don't have to provide information about your card settings. All you do is add the pcm device driver to your kernel.

(note: I am using the ee editor in my example, you can always use vi or some other editor of your choice)

Login: root
Password: *******


# cd /usr/src/sys/i386/conf
# ee MYKERNEL

Append the end of the KERNEL config file with the pcm driver option:

device     pcm

Now save the file, recompile your kernel, install it and reboot. When your machine restarts, it should display the new pcm driver information at startup. Here is a sample of my startup messages:

sbc0: at port 0x220-0x22f,0x330-0x331,0x388-0x38b irq 5 drq 1,5 on isa0

pcm0: on sbc0


(note: If you do not see pcm information, it could be that your audio card is not supported, or that your card does not support PNP).

Finally, login as root and make your audio device:

# Login: root
# Password: *******

# cd /dev
# sh MAKEDEV snd0

[Non-PNP Audio Drivers]
For non-PNP audio cards, you will follow the same procedure as PNP, but you need to provide more information, such as the IRQ and IO address ranges of your card. Here is a sample with common settings. Your audio card may be different.

Append the end of the KERNEL config file with the pcm driver option:

device     pcm0     at isa? port? irq 5 drq 1 flags 0x15

If the pcm driver displays your audio card at boot time and the snd0 device is created without any errors, then your ready to install some audio applications!

(note: for more information on the pcm drivers. Try the man page)

man pcm

<  |  >

 

Related Links
  • Articles on Multimedia
  • Also by Jason
  • Contact author

    Lilliput Mini USB Computer Monitor

    If you have ever wanted to learn about Cisco Routers, check out my new book "Cisco Routers for the Small Business" - it's Cisco CLI for the Regular Guy!

  • Sponsors

    The Fine Print: The following comments are owned by whoever posted them.
    ( Add a Reply )

    Re: HOWTO: Install Audio Support
    by tookey on Friday June 09, @05:11AM
    installaudio card in computer
    [ Add a Reply to this ]
    Re: HOWTO: Install Audio Support
    by tookey on Friday June 09, @05:11AM
    installaudio card in computer
    [ Add a Reply to this ]
    The Fine Print: The following comments are owned by whoever posted them.
    ( Article Reply )

    "You never know how many friends you have until you own a Condo on the beach." -- Jason's Postulate

    Powered by Zope  Powered by Apache  Squishdot Powered
    All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest ©2001 Jason Neumann.
    [ main | post article | search ]