diff --git a/en_US.ISO8859-1/books/handbook/multimedia/chapter.sgml b/en_US.ISO8859-1/books/handbook/multimedia/chapter.sgml index c6456fe25a..5c29bdf292 100644 --- a/en_US.ISO8859-1/books/handbook/multimedia/chapter.sgml +++ b/en_US.ISO8859-1/books/handbook/multimedia/chapter.sgml @@ -1,336 +1,373 @@ - Sound + + + + Moses + Moore + Contributed + + + + - Contributed by Moses Moore - jm-moses@home.com, 20 November 2000. + Sound Synopsis - This chapter of the handbook deals with setting up sound on a - FreeBSD system. + FreeBSD supports a wide variety of sound cards, allowing you + to enjoy high fidelity output from your computer. This includes + the ability to record and playback audio in the MPEG Audio Layer + 3 (MP3), WAV, and Ogg Vorbis formats as well as many other + formats. The FreeBSD Ports Collection also contains + applications allowing you to edit your recorded audio, add sound + effects, and control attached MIDI devices. + + + + After reading this chapter you will know how to : + + Find your sound card. + Configure your system so that your sound card is + recognized. + Test that your card is working using + sample applications. + Troubleshoot your sound setup. + + + Before reading this chapter, you should be comfortable doing + the following : + + + Installing and configuring a new kernel () + + + Locating the Correct Device PCI ISA sound cards Before you begin, you should know the model of the card you have, the chip it uses, and whether it is a PCI or ISA card. FreeBSD supports a wide variety of both PCI and ISA cards. If you do not see your card in the following list, check the &man.pcm.4; manual page. This is not a complete list; however, it does list some of the most common cards. Crystal 4237, 4236, 4232, 4231 Yamaha OPL-SAx OPTi931 Ensoniq AudioPCI 1370/1371 ESS Solo-1/1E NeoMagic 256AV/ZX Sound Blaster Pro, 16, 32, AWE64, AWE128, Live Creative ViBRA16 Advanced Asound 100, 110, and Logic ALS120 ES 1868, 1869, 1879, 1888 Gravis UltraSound Aureal Vortex 1 or 2 kernel configuration The driver you use in your kernel depends on the kind of card you have. The sections below provide more information and what you will need to add to your kernel configuration. Creative, Advance, and ESS Sound Cards If you have one of the above cards, you will need to add device pcm to your kernel. If you have a PnP ISA card, you will also need to add device sbc to your kernel. For a non-PnP ISA card, add device pcm and device sbc0 at isa? port0x220 irq 5 drq 1 flags 0x15 to your kernel. Those are the default settings. You may need to change the IRQ, etc. See the &man.sbc.4; man page for more information. The Sound Blaster Live is not supported under FreeBSD 4.0 without a patch, which this document will not cover. It is recommended that you update to the latest -STABLE before trying to use this card. Gravis UltraSound Cards For a PnP ISA card, you will need to add device pcm and device gusc to your kernel. If you have a non-PnP ISA card, you will need to add device pcm and device gus0 at isa? port 0x220 irq 5 drq 1 flags 0x13 to your kernel. You may need to change the IRQ, etc. See the &man.gusc.4; man page for more information. Crystal Sound Cards For Crystal cards, you will need both device pcm and device csa in your kernel. Generic Support For PnP ISA or PCI cards, you will need to add device pcm to your kernel configuration. If you have a non-PnP ISA sound card that does not have a bridge driver, you will need to add device pcm0 at isa? irq 10 drq 1 flags 0x0 to your kernel configuration. You may need to change the IRQ, etc., to match your hardware configuration. Recompiling the Kernel After adding the driver(s) you need to your kernel configuration, you will need to recompile your kernel. Please see of the handbook for more information. Creating and Testing the Device Nodes device nodes After you reboot, log in and run cat /dev/sndstat. You should see output similar to the following: FreeBSD Audio Driver (newpcm) Sep 21 2000 18:29:53 Installed devices: pcm0: <Aureal Vortex 8830> at memory 0xfeb40000 irq 5 (4p/1r +channels duplex) If you see an error message, something went wrong earlier. If that happens, go through your kernel configuration file again and make sure you chose the correct device. If it reported no errors and returned pcm0, su to root and do the following: &prompt.root; cd /dev &prompt.root; sh MAKEDEV snd0 If it reported no errors and returned pcm1, su to root and do the following: &prompt.root; cd /dev &prompt.root; sh MAKEDEV snd1 Please note that either of the above commands will not create a /dev/snd device! Instead it creates a group of device nodes including: Device Description /dev/audio SPARC-compatible audio device /dev/dsp Digitized voice device /dev/dspW Like /dev/dsp, but 16 bits per sample /dev/midi Raw midi access device /dev/mixer Control port mixer device /dev/music Level 2 sequencer interface /dev/sequencer Sequencer device /dev/pss Programmable device interface If all goes well, you should now have a functioning sound card. If you do not, see the next section. Common Problems device node I get an unsupported subdevice XX error! One or more of the device nodes wasn't created correctly. Repeat the steps above. I/O port I get a sb_dspwr(XX) timed out error! The I/O port is not set correctly. IRQ I get a bad irq XX error! The IRQ is set incorrectly. Make sure that the set IRQ and the sound IRQ are the same. I get a xxx: gus pcm not attached, out of memory error. What causes that? If this happens, it is because there is not enough available memory to use the device. diff --git a/en_US.ISO8859-1/books/handbook/sound/chapter.sgml b/en_US.ISO8859-1/books/handbook/sound/chapter.sgml index c6456fe25a..5c29bdf292 100644 --- a/en_US.ISO8859-1/books/handbook/sound/chapter.sgml +++ b/en_US.ISO8859-1/books/handbook/sound/chapter.sgml @@ -1,336 +1,373 @@ - Sound + + + + Moses + Moore + Contributed + + + + - Contributed by Moses Moore - jm-moses@home.com, 20 November 2000. + Sound Synopsis - This chapter of the handbook deals with setting up sound on a - FreeBSD system. + FreeBSD supports a wide variety of sound cards, allowing you + to enjoy high fidelity output from your computer. This includes + the ability to record and playback audio in the MPEG Audio Layer + 3 (MP3), WAV, and Ogg Vorbis formats as well as many other + formats. The FreeBSD Ports Collection also contains + applications allowing you to edit your recorded audio, add sound + effects, and control attached MIDI devices. + + + + After reading this chapter you will know how to : + + Find your sound card. + Configure your system so that your sound card is + recognized. + Test that your card is working using + sample applications. + Troubleshoot your sound setup. + + + Before reading this chapter, you should be comfortable doing + the following : + + + Installing and configuring a new kernel () + + + Locating the Correct Device PCI ISA sound cards Before you begin, you should know the model of the card you have, the chip it uses, and whether it is a PCI or ISA card. FreeBSD supports a wide variety of both PCI and ISA cards. If you do not see your card in the following list, check the &man.pcm.4; manual page. This is not a complete list; however, it does list some of the most common cards. Crystal 4237, 4236, 4232, 4231 Yamaha OPL-SAx OPTi931 Ensoniq AudioPCI 1370/1371 ESS Solo-1/1E NeoMagic 256AV/ZX Sound Blaster Pro, 16, 32, AWE64, AWE128, Live Creative ViBRA16 Advanced Asound 100, 110, and Logic ALS120 ES 1868, 1869, 1879, 1888 Gravis UltraSound Aureal Vortex 1 or 2 kernel configuration The driver you use in your kernel depends on the kind of card you have. The sections below provide more information and what you will need to add to your kernel configuration. Creative, Advance, and ESS Sound Cards If you have one of the above cards, you will need to add device pcm to your kernel. If you have a PnP ISA card, you will also need to add device sbc to your kernel. For a non-PnP ISA card, add device pcm and device sbc0 at isa? port0x220 irq 5 drq 1 flags 0x15 to your kernel. Those are the default settings. You may need to change the IRQ, etc. See the &man.sbc.4; man page for more information. The Sound Blaster Live is not supported under FreeBSD 4.0 without a patch, which this document will not cover. It is recommended that you update to the latest -STABLE before trying to use this card. Gravis UltraSound Cards For a PnP ISA card, you will need to add device pcm and device gusc to your kernel. If you have a non-PnP ISA card, you will need to add device pcm and device gus0 at isa? port 0x220 irq 5 drq 1 flags 0x13 to your kernel. You may need to change the IRQ, etc. See the &man.gusc.4; man page for more information. Crystal Sound Cards For Crystal cards, you will need both device pcm and device csa in your kernel. Generic Support For PnP ISA or PCI cards, you will need to add device pcm to your kernel configuration. If you have a non-PnP ISA sound card that does not have a bridge driver, you will need to add device pcm0 at isa? irq 10 drq 1 flags 0x0 to your kernel configuration. You may need to change the IRQ, etc., to match your hardware configuration. Recompiling the Kernel After adding the driver(s) you need to your kernel configuration, you will need to recompile your kernel. Please see of the handbook for more information. Creating and Testing the Device Nodes device nodes After you reboot, log in and run cat /dev/sndstat. You should see output similar to the following: FreeBSD Audio Driver (newpcm) Sep 21 2000 18:29:53 Installed devices: pcm0: <Aureal Vortex 8830> at memory 0xfeb40000 irq 5 (4p/1r +channels duplex) If you see an error message, something went wrong earlier. If that happens, go through your kernel configuration file again and make sure you chose the correct device. If it reported no errors and returned pcm0, su to root and do the following: &prompt.root; cd /dev &prompt.root; sh MAKEDEV snd0 If it reported no errors and returned pcm1, su to root and do the following: &prompt.root; cd /dev &prompt.root; sh MAKEDEV snd1 Please note that either of the above commands will not create a /dev/snd device! Instead it creates a group of device nodes including: Device Description /dev/audio SPARC-compatible audio device /dev/dsp Digitized voice device /dev/dspW Like /dev/dsp, but 16 bits per sample /dev/midi Raw midi access device /dev/mixer Control port mixer device /dev/music Level 2 sequencer interface /dev/sequencer Sequencer device /dev/pss Programmable device interface If all goes well, you should now have a functioning sound card. If you do not, see the next section. Common Problems device node I get an unsupported subdevice XX error! One or more of the device nodes wasn't created correctly. Repeat the steps above. I/O port I get a sb_dspwr(XX) timed out error! The I/O port is not set correctly. IRQ I get a bad irq XX error! The IRQ is set incorrectly. Make sure that the set IRQ and the sound IRQ are the same. I get a xxx: gus pcm not attached, out of memory error. What causes that? If this happens, it is because there is not enough available memory to use the device.