LINUX Under Sonic Card Driver Software ALSA Installation and Configuration
2000-11-23 7:00
Publisher: NetBull Readings: 5585
LinuxByte Note: This site has the latest version of the latest version of the download
Zhang Zi
For a few years, although Linux is invincible in the global server market with open, freedom characteristics and powerful performance, it has accounted for more and more market share, but if as desktop software, Linux's multimedia characteristics have never been very satisfied. For example, there are few sound cards that the sound card driver that comes with the Linux system can support. Most market popular sound card products are difficult to get systematic support.
This situation is rapidly transforming. Many manufacturers have seen the general trend and actively participate in the development of drivers. Some organizations and individuals have also begun to show their hands and have made a lot of beneficial exploration.
The software introduced today is a sound card driver package --- ALSA, all named Advanced Linux Sound Architecture. It is one of the GNU's software. As the name suggests, it can drive sound card devices under Linux.
It supports most popular sound cards. Modular architecture. Support full-duplex, digital audio and other sound card characteristics.
The latest packages can be downloaded at http://www.alsa-project.org. If you are interested in and enough, you can join the development team. A smart talents in the world.
The following details describes all of ALSA installation configuration procedures and precautions, which also gives a list of supported sound cards.
Please check if you have supported your own sound card before installation. So as busy one.
One: Hardware and its software environment requirements.
Author's hardware environment: Celeron 366 CPU / MSI 6199VA motherboard / 128MB Kingmax memory / 10.2GB gold diamond 2 hard drive / 8X CDROM / WinFast L2300 graphics card / Yamaha 724 chip sound card
Hard Disk Partition and Operating System Software: Windows98 Windows2000 BluePoint1.0 (Blue Point Chinese Linux, is fully compatible with Red Hat). Use the LILO launcher.
ALSA's requirements for the Linux software environment: There is no special Linux version, but the core version is required above 2.2.x. If your Linux system kernel is lower than this version, recompile the new core. The kernel version of BluePoint1.0 is 2.2.13.
Two: Download the software.
The latest version of ALSA is 0.5.9B, and the full name is Alsa-Driver-0.5.9B.Tar.bz2. The new BZ2 compression format is used, which is smaller. In addition to it, the following packages are required for normal operations:
Alsa-utils-0.5.9a.tar.bz2 ---------- Practical package
ALSA-lib-0.5.9.tar.bz2 ------------- Create the library file required by the utility
If you are software downloaded using the Windows operating system, you need to copy it into the Linux system.
First, use the root user to log in and start the installation process.
1: Windows partitions containing this file in Linux,
input the command:
"Mount -t vfat / dev / hadx / win98" where "X" in HDAX is the Win98 hard drive partition number. If you have any questions, please teach other familiar friends.
2: Enter the downloaded directory, copy the alsa-driver-0.5.9b.tar.bz2 and other two files into a subdirectory,
input the command:
"CP ALSA-Driver-0.5.9 * / root"
3: Unpack the file.
input the command:
"BZIP2 -DV ALSA-Driver-0.5.9b.tar.bz2"
At this point, use the "LS" command, only ALSA-Driver-0.5.9b.tar in the current directory, indicating that BZip compression has been released. input the command:
"TAR VFX ALSA-Driver-0.5.9b.tar"
The program automatically generates a subdirectory called --- ALSA-Driver-0.5.9B.
Repeat this step for other two packages to unpack compression. Use the "ls" command to view, you will find the corresponding directory.
If you are not familiar with the command line, you can view help information and books. You can also start the X-Window window environment, select the corresponding compressed file in the file management program, and then select the decompression command in the File menu.
Three: Install the driver file.
1: Open the sound card support in the kernel.
In most cases, this step can be ignored because basic all Linux release kernel default states are supported by sound card devices.
2: Run the script.
input the command:
"./Configure"
If your sound card belongs to the ISA plug and play type, please enter the following command:
"./Configure --with-isapnp = yes"
input the command:
Make Install
Note that this step is longer, please wait patiently. If everything is normal, the program will finally prompt the module to compile success! And the state of the warning sound card is mute, you need to use the utility such as "AMixer" to adjust the volume.
"Amixer", etc., is included with the ALSA-Utils-0.5.9a.tar.bz2, which needs to be compiled.
If the make command cannot be executed, then you need to find a Linux installation disk to install the file package for developing. Please refer to the software manual for specific operations.
input the command:
"./Snddevices"
The script will automatically create a relevant sound card device in the "/ dev" directory.
4: Install the library file and utility.
Since "AMixer", you need to find the corresponding library file to be compiled, so you need to install ALSA-LIB-0.5.9.tar.bz2 first.
Enter the corresponding subdirectory ALSA-LIB-0.5.9,
input the command:
"./Configure"
input the command:
Make Install
After these two steps are ready, go back to the upper directory, enter the ALSA-UTILS-0.5.9A subdirectories,
input the command:
"./Configure"
input the command:
Make Install
Note that if "./configure" in the above steps, I am afraid you need to use the "-prefix" parameter to specify the path.
Such as: Try to use "./configure -prefix = / usr / include / linux" when installing the library file
Try "./configure -prefix = / usr / include / sys" when installing a utility
Five: Edit the /etc/modules.conf file.
This step is probably the most difficult step. However, the example is given below, and it is generally necessary to change according to the respective system conditions.
1: Establish Modules.conf file.
Because there is a demo file in the system, just copy one copy, re-modify it.
input the command:
"CP MODULES.CONF.SAMPLE MODULES.CONF"
2: Modify Modules.conf.
Use any text editor, such as VI, open this file, add the following:
"
#Alsa portion
Alias Char-Major-116 SND
# 注释: The main device number used by ALSA
Alias Snd-Card-0 Snd-Card-Ymfpci # SND-CARD-0 is the first sound card device in the system, and if the system has more than two sound cards,
# You can map with SND-CARD-1 SND-CARD-2 and other methods
# SND-CARD-YMFPCI is the name of the sound card device.
#Oss / free portion ---- Because ALSA requires support for OSS SoundCore and other devices in the kernel
Alias Char-Major-14 Soundcore
# S 系统 的 主 主 的 主 设备 号
Alias Sound-Slot-0 SND-CARD-0
# The first sound card corresponds to the slot
# 下 below is the sound card driver module, Sound-service-0 refers to the first sound card. If there is only one piece inside the system, it can be sealed. Otherwise, follow this format Add another sound card driver module.
#card # 1
Alias Sound-Service-0-0 SND-MIXER-OSS
Alias Sound-Service-0-1 SND-SEQ-OSS
Alias Sound-Service-0-3 SND-PCM-OSS
Alias Sound-Service-0-8 SND-SEQ-OSS
Alias Sound-Service-0-12 SND-PCM-OSS
#Isa sound card also needs to specify an IRQ / IO address because there are already few markets, and it is no longer discussed here. Need to check
# See related instructions for this software.
"
6: System testing and sound card equipment adjustment.
1: After editing the /etc/modules.conf file, you need to use the system program test module to be loaded normally.
input the command:
"ModProbe Snd-Card-YMFPCI"
The system directly enters the prompt state, indicating that the load is normal. However, if you can't make it unclear, you can go to /lib/modules/2.2.13/misc to view it, and you can load the sound card module is inside. With the module name, you can know what you need.
2: Adjust the volume.
input the command:
"Amixer"
The command prompt is as follows:
"
Capabilities: Volume
Channels: Front-Left Front-Right
Limits: min = 0, MAX = 16383
Front-Left: 0 [0%] [ON] [---]
Front-Right: 0 [0%] [ON] [---]
Group ADC RECORD, 0
Capabilities: Volume
Channels: Front-Left Front-Right
Limits: min = 0, MAX = 16383
Front-Left: 0 [0%] [ON] [---]
Front-Right: 0 [0%] [ON] [---]
Group Capture Volume, 0
Capabilities: Volume
Channels: Front-Left Front-Right
Limits: min = 0, MAX = 16383
Front-Left: 0 [0%] [ON] [---]
Front-Right: 0 [0%] [ON] [---]
Group Input Gain, 0
Capabilities: Volume Mute Jointly-Mute
Channels: Front-Left Front-Right
Limits: min = 0, MAX = 15
Front-Left: 0 [0%] [MUTE] [---]
Front-Right: 0 [0%] [MUTE] [---]
Group master mono, 0
Capabilities: Volume Mute Capture Exclusive-CaptureCapture Exclusive Group: 1
Channels: Front-Left Front-Right
Limits: min = 0, MAX = 31
Front-Left: 0 [0%] [MUTE] [---]
Front-Right: 0 [0%] [MUTE] [---]
Group master, 0
Capabilities: Volume Mute Jointly-Mute Capture Exclusive-Capture
Capture Exclusive Group: 1
Channels: Front-Left Front-Right
Limits: min = 0, MAX = 31
Front-Left: 0 [0%] [MUTE] [---]
Front-Right: 0 [0%] [MUTE] [---]
Group aux, 0
Capabilities: Volume Mute Jointly-Mute Capture Exclusive-Capture
Capture Exclusive Group: 1
Channels: Front-Left Front-Right
Limits: min = 0, MAX = 31
Front-Left: 0 [0%] [MUTE] [---]
Front-Right: 0 [0%] [MUTE] [---]
Group video, 0
Capabilities: Volume Mute Jointly-Mute Capture Exclusive-Capture
Capture Exclusive Group: 1
Channels: Front-Left Front-Right
Limits: min = 0, MAX = 31
Front-Left: 0 [0%] [MUTE] [---]
Front-Right: 0 [0%] [MUTE] [---]
Group CD, 0
Capabilities: Volume Mute Jointly-Mute Capture Exclusive-Capture
Capture Exclusive Group: 1
Channels: Front-Left Front-Right
Limits: min = 0, MAX = 31
Front-Left: 0 [0%] [MUTE] [---]
Front-Right: 0 [0%] [MUTE] [---]
GROUP LINE, 0
Capabilities: Volume Mute Jointly-Mute Capture Exclusive-Capture
Capture Exclusive Group: 1
Channels: Front-Left Front-Right
Limits: min = 0, MAX = 31
Front-Left: 0 [0%] [MUTE] [---]
Front-Right: 0 [0%] [MUTE] [---]
Group MIC, 0
Capabilities: Volume Mute Capture Exclusive-Capture
Capture Exclusive Group: 1
Channels: Front-Left Front-Right
Limits: min = 0, MAX = 31
Front-Left: 0 [0%] [MUTE] [Capture]
Front-Right: 0 [0%] [MUTE] [Capture]
Group Phone, 0
Capabilities: Volume Mute Capture Exclusive-Capture
Capture Exclusive Group: 1Channels: Front-Left Front-Right
Limits: min = 0, MAX = 31
Front-Left: 0 [0%] [MUTE] [---]
Front-Right: 0 [0%] [MUTE] [---]
Group PC Speaker, 0
Capabilities: Volume Mute
Channels: Front-Left Front-Right
Limits: min = 0, MAX = 15
Front-Left: 0 [0%] [MUTE] [---]
Front-Right: 0 [0%] [MUTE] [---]
Group PCM, 0
Capabilities: Volume Mute Jointly-Mute
Channels: Front-Left Front-Right
Limits: min = 0, MAX = 31
Front-Left: 0 [0%] [MUTE] [---]
Front-Right: 0 [0%] [MUTE] [---]
"
Source: Linux Chinese Resources First Station