Configuring your sound card

Before you can use sound on your Red Hat Linux system, you need to install your sound card and connect the speakers. Red Hat Linux should detect this card when you install Red Hat Linux or when you reboot and install the proper driver. Drivers for many common sound cards are available when you first install Red Hat Linux. Earlier releases of Red Hat Linux did not have sound card devices built into the kernel, but the current release of Red Hat Linux automatically builds sound support into the kernel.

Probably the easiest way to check if your sound card is working is to insert a music CD into the drive and (if one doesn't start automatically) start one of the CD players described in the next section. As an alternative, you can check if the basic sound module is installed. For example, you could type:

$ cat /proc/modules | grep soundcore soundcore 4112 4 [es1371]

This example shows that the soundcore module has been loaded and that the sound card driver is the Ensoniq ES1371 driver.

Note If you have a sound file, you can send it directly to a sound device (for example, cat file.wav >

/dev/audio) to test your sound card. You can use a sound file from /usr/share/sndconfig to test your sound card in Red Hat Linux. To find a sound file on your Windows 95/98 system, use the Find window (Start ® Find ® Files or Folders) and do an advanced search for Sound Clip. If you hear a sound clip, then your sound card is working. If your speakers are plugged in and the volume is up, but you don't hear any sounds, continue with the next procedure to configure your sound card.

Run /usr/sbin/sndconfig (this starts the Sound Card Configuration Utility).

A sndconfig window is displayed, asking ask if you want to probe for Plug-and-Play cards. Press Enter to select OK.

If the utility finds a sound card that it recognizes, it displays the name of that card and asks if you want to configure it. The sndconfig window just described is shown in Figure 8-1.

igure 8-1: The sndconfig utility finds and configures your sound card.

In this example, sndconfig detects a Creative Sound Blaster 16 card (Creative ViBRA16X PnP). Press Enter to select OK.

A message warns you that you are replacing the old /etc/conf.modules file. Press Enter to select OK.

A message tells you that a sound sample will play to check if the card is configured properly. Press Enter to select OK.

You are asked if you heard the sound.

If you hear the sound, select Yes and skip to step 12. Otherwise select No to continue.

You are asked to manually configure your sound card. Press Enter to select OK.

A list of sound cards is displayed. Select your card and press Enter to select OK.

Select OK to try the sound card again.

You are asked again if you were able to hear the sample. If you hear the sound, select Yes to continue. Otherwise select No to try a different card.

You are warned that a new /etc/modules.conf file is being created (and the old one is being backed up). Press Enter to select OK.

At this point, you can try to run an audio file again. Type cat Hle.au > /dev/audio. If all went well, you should hear the audio file this time. At this point, you should be able to use any of the CD music players or applications that use sound to play sound through your sound card.

Tip When I configured my sound card, the default sound level was a bit low for my taste. I inserted a music CD to have something to listen to. Then I ran the aumix command to adjust the volume levels. Volume (Vol) should be highlighted when aumix opens. You can use the right and left arrows to adjust volume levels. Use the up and down arrows to choose particular sound devices: speaker, line, mic, CD, and so on. With a device highlighted, use the tab key to be able to adjust balance for the device. Type s to save the changes and q when you are done.

Continue reading here: Audio file conversion

Was this article helpful?

0 0

Readers' Questions

  • isengrim
    How to detect sound card?
    1 month ago
    1. Check your Device Manager: You can check for your sound card by opening your Device Manager and expanding the Sound, Video and Game Controllers section.
    2. Check your System Information: Press the Windows key + R and type "msinfo32". In the System Information window that opens, look for System Model and find the sound card listed there.
    3. Check your manufacturer’s website: Depending on the type of computer you have, you can find the sound card model and specs by navigating to your manufacturer’s website and searching for information about your specific machine.
    • Maximilian
      How to activate the audio on linux redhat?
      1 year ago
      1. Check if the sound card is working:
      2. Open up a terminal window and type the following command to list the sound cards and associated devices: lspci -v | awk '/Audio/{print}�
      3. 39;
      4. You should see some output like this: 00:14.2 Audio device: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'
      5. 97 Audio Controller (rev 03)
      6. This means the sound card is detected and is working fine.
      7. Install the necessary packages:
      8. If you are using an RPM-based distribution such as Red Hat, Fedora, or CentOS, use the following command to install the necessary packages: sudo yum install alsa-utils alsa-firmware alsa-lib alsa-plugins-pulseaudio
      9. Load the sound modules:
      10. The next step is to load the sound modules. You can do this with the following command: sudo modprobe snd-intel8x
      11. 0 Test the sound card:
      12. Now you can test the sound card with the following command: aplay -l This should list all the available sound cards. If the sound card is working, you should see output like this: card
      13. 0: Intel [HDA Intel], device 0: ALC888 Analog [ALC888 Analog]
      14. Subdevices: 1/
      15. 1 Subdevice #0: subdevice #0
      16. Configure the sound system:
      17. The last step is to configure the sound system with the following command: sudo alsactl init This will apply the necessary changes and the sound should now be working.