- Table of Contents
- Copyright
- About the Lead Authors
- About the Contributing Authors
- Acknowledgments
- Tell Us What You Think!
- Introduction
- I. Red Hat Linux Installation and User Services
- Chapter 1. Introduction to Red Hat Linux
- Chapter 2. Installation of Your Red Hat System
- Chapter 3. LILO and Other Boot Managers
- Chapter 4. Configuring the X Window System, Version 11
- Chapter 5. Window Managers
- Chapter 6. Connecting to the Internet
- Chapter 7. IRC, ICQ, and Chat Clients
- Chapter 8. Using Multimedia and Graphics Clients
- II. Configuring Services
- Chapter 9. System Startup and Shutdown
- Chapter 10. SMTP and Protocols
- Chapter 11. FTP
- Chapter 12. Apache Server
- Chapter 13. Internet News
- Chapter 14. Domain Name Service and Dynamic Host Configuration Protocol
- Chapter 15. NIS: Network Information Service
- Chapter 16. NFS: Network Filesystem
- Chapter 17. Samba
- III. System Administration and Management
- Chapter 18. Linux Filesystems, Disks, and Other Devices
- Chapter 19. Printing with Linux
- Chapter 20. TCP/IP Network Management
- Chapter 21. Linux System Administration
- Chapter 22. Backup and Restore
- Chapter 23. System Security
- IV. Red Hat Development and Productivity
- Chapter 24. Linux C/C++ Programming Tools
- Chapter 25. Shell Scripting
- Chapter 26. Automating Tasks
- Chapter 27. Configuring and Building Kernels
- Chapter 28. Emulators, Tools, and Window Clients
- V. Appendixes
- A. The Linux Documentation Project
- B. Top Linux Commands and Utilities
- C. The GNU General Public License
- D. Red Hat Linux RPM Package Listings
Configuring Sound
The sndconfig command is the Red Hat configuration tool to use to get Linux to work with your computer's sound system. This command, which may be launched without running X11, can automatically probe your computer's audio hardware, configure the card to work with Linux, then save the settings so that sound is enabled every time you boot Linux.
Start the sndconfig command from the command line of the console or an X11 terminal window by typing this:
# sndconfig
After you press Enter, you should see a dialog, as shown in Figure 8.11.
Figure 8.11 Red Hat's sndconfig command will probe your sound card.
If the probe is successful, sndconfig will then test your card. If the probe is not successful, you may have to proceed with a manual configuration. If you'd prefer to start with a manual configuration (no probe), use sndconfig's --noprobe command-line option. And if you don't want sndconfig to configure Linux to use the sound card (perhaps if you're testing a new sound card), use the --noautoconfig option.
If you manually configure your sound card, you'll see a dialog, as shown in Figure 8.12, that you can use to scroll and select your sound card.
Figure 8.12 Red Hat's sndconfig command also offers manual configuration.
Scroll through the list of sound cards to highlight your card (or a compatible card), then use the Tab key to highlight the OK button and press Enter. You'll then have to use the next dialog, shown in Figure 8.13, to specify the correct I/O port addresses, IRQ settings, and DMA settings.
Use the Tab and spacebar to enable the specific settings, then tab to the OK button and press Enter. The command will update your /etc/modules.conf file (and back up an existing one). The command will then (after you click OK) play a sound sample. You'll then be asked if you were able to hear the sound sample, as shown in Figure 8.14.
Click Yes if sound was heard (Linus pronouncing "Linux" from the file sample.au under the /usr/share/sndconfig directory). If you click No, you can again attempt to configure your sound card. Upon success, the sndconfig will then try to play a MIDI sound, and you can again verify success. The program will then exit.
Sound support under Linux is generally in the form of loadable kernel modules, found under the /lib/modules/2. X.X /misc directory, where XX is the version of your kernel. Sound settings will be saved in the file soundcard under the /etc/sysconfig directory.
Figure 8.13 Manual sound card configuration may require specific hardware settings.
Figure 8.14 The sndconfig command will play a sound sample and ask about its success.
You may also find that sndconfig has altered settings in your system's /etc/modules.conf file (these settings will cause the Linux kernel to load the proper sound modules upon startup).
For the examples shown in Figures 8.11 through 8.14, sndconfig created the following entry in /etc/sysconfig/soundcard:
# THIS FILE IS WRITTEN BY SNDCONFIG # PLEASE USE SNDCONFIG TO MODIFY # TO CHANGE THIS FILE! # There should be no spaces at the start of a line # or around the '='sign CARDTYPE=SB16
The corresponding entry in /etc/modules.conf looks like this:
alias sound-slot-0 sb options sound dmabuf=1 alias midi opl3 options opl3 io=0x388 options sb io=0x220 irq=5 dma=0 dma16=5 mpu_io=0x330
These examples are for a SoundBlaster 16–compatible card, and the kernel module options create the settings for proper initialization of the card when Linux boots. After configuring your sound card and ensuring that it works with Linux, you should then launch an audio mixer to choose proper settings for different audio devices offered by your sound system. This may include volume, bass, treble, synthesizer, MIDI, line in, line out, microphone, and audio CD settings. Red Hat Linux comes with a number of audio mixers:
- aumix—A console audio mixer
- gmix—A GNOME X11 mixer
- kmix—A KDE mixer client
- xmixer—An X11 mixer client
All mixers provide the same functions, but you'll most likely use the one available in your desktop's panel. If you do not use X11, the aumix command can be used from the console. Interestingly, if you've properly configured the gpm or mouse daemon so that you can use your mouse for copying and pasting under the console, you can use your mouse to control the aumix slider controls (otherwise you'll need to use the cursor keys).
Playing Audio CDs | Next Section

Account Sign In
View your cart