Listen to the free voice ---- Linux Soundtrack Drive Software ALSA Installation and Configuration

zhaozj2021-02-11  217

Listen to the free voice ---- Linux Soundtrack Drive Software ALSA Installation and Configuration

Recommended: YY810310 Posted: December 9, 2000 Readings: 294

-------------------------------------------------- ------------------------------

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 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

# 注 释: ALSA uses the main device number alias SND-CARD-0 SND-CARD-YMFPCI

# SND-CARD-0 is the first sound card device in the system, if there are 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 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 CHAN NELS: 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: 1 Channels: Front-Left Front-Right Limits: min = 0, Max = 31 Front-Left: 0 [0%] [Mute] [---] Front-Right: 0 [0%] [MUTE] [-] Group 'PC Speaker', 0 Capabil ITIES: 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] [---] "

This indicates that the sound card drive default status is mute, so you need to use the program to adjust the appropriate volume.

Originally using the "amixer" command can manually specify the parameters to make volume adjustment. However, in order not to follow this article until now, the brain may have been confused, and it is very convenient to try the following ways.

input the command:

"Alsamixer"

Have you seen a graphical interface? Press F1 to see help information. Note that each vertical bar represents your sound card characteristics. Using the left and right cursor keys, you can easily adjust the volume of each property. The quantity of the upper and lower light is, for example, I have transferred them to "74", and the left and right spectrum is switched to the vertical bar. After adjusting, press the "ESC" button to exit.

Enter the command:

"Amixer" "Group 'SPDIF Record', 0 Capabilities: Volume Channels: Front-Left Front-Right Limits: min = 0, MAX = 16383 Front-Left: 12136 [74%] [ON] [-] front- Right: 12136 [74%] [ON] [---] Group 'ADC Record', 0 Capabilities: Volume Channels: Front-Left Front-Right Limits: min = 0, Max = 16383 Front-Left: 12136 [74% ] [ON] [---] Front-Right: 12136 [74%] [ON] [-] Group 'Capture Volume', 0 Capabilities: Volume Channels: Front-Left Front-Right Limits: min = 0, MAX = 16383 Front-Left: 12136 [74%] [ON] [---] Front-Right: 12136 [74%] [ON] [---] Group 'Input Gain', 0 Capabilities: Volume Mute Jointly- Mute Channels: Front-Left Front-Right Limits: min = 0, MAX = 15 Front-Left: 11 [73%] [Mute] [---] Front-Right: 11 [73%] [MUTE] [- -] Group 'Master Mono', 0 Capabilities: volume mute capture exclusive-capture Capture exclusive group: 1 Channels: Front-Left Front-Right Limits: min = 0, max = 31 Front-Left: 23 [74%] [mute ] [---] Front-Right: 23 [74%] [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: 23 [74%] [Mute] [-] front-right: 23 [74%] [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: 23 [74%] [Mute] [---] Front-Right: 23 [74%] [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: 23 [74%] [Mute] [---] Front-Right: 23 [74%] [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: 23 [74%] [Mute] [-] Front-Right: 23 [74%] [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 : 23 [74%] [Mute] [---] Front-Right: 23 [74%] [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: 23 [74%] [Mute] [Capture] Front-Right: 23 [74%] [Mute] [Capture] Group 'Phone ', 0 Capabilities: Volume Mute Capture Exclusive-Capture Capture Exclusive Group: 1 Channels: Front-Left Front-Right Limits: min = 0, Max = 31 Front-Left: 23 [74%] [Mute] [-] Front-Right: 23 [74%] [MUTE] [-] group 'P C Speaker ', 0 Capabilities: Volume Mute Channels: Front-Left Front-Right Limits: min = 0, MAX = 15 Front-Left: 11 [73%] [Mute] [-] Front-Right: 11 [73 %] [MUTE] [-] Group 'PCM', 0 Capabilities: Volume Mute Jointly-Mute Channels: Front-Left Front-Right Limits: min = 0, MAX = 31 Front-Left: 23 [74%] [ Mute] [---] Front-Right: 23 [74%] [MUTE] [---] "You will find that your adjustment has played.

3: Store configuration parameters.

Because the adjustment just is not permanent, the next time it is restarted, it has become a quiet state. So, you need to store parameters.

input the command:

"

Alsactl Store

"

The program automatically establishes the configuration file --- "/ etc / asseound.conf". If you are not satisfied with the modified configuration, you can use:

"AlsactL Restore" recovered.

7: Listen to the sound of freedom.

At this point, all installation processes are over. Since each person's system is different, the author cannot expect all situations. If you have any questions, please pay attention to, carefully study, think. I can't solve the welcome to discuss it. To know, so your Linux will increase rapidly. Although the installation of one step is simple, there is less fun. Thank you so patient, start X WINDOW, open the MP3 player, enjoy the fun of wonderful music!

Author: TopMan

2000/8/31

Appendix: Supported sound card list

1: Sound card list:

============================================================================================================================================================================================================= =========

Sound Card Type: AMD Interface Sound Card Type: Gravis Ultrasound Plug & Play Sound Card Type: Dynasonic 3-D Sound Card Type: Stb Sound Rage 32 Sound Card Type: Ultrasound 32-Pro (STB) Sound Card Type: MED3210 Sound Card Type: Gravis Ultrasound Max Sound Card Type: Gravis UltraSound Extreme sound type: Gravis UltraSound Classic / ACE sound type: ESS AudioDrive ESx688 sound type: SoundBlaster 1.0 / 2.0 / Pro sound type: SoundBlaster 16 / AWE sound type: Yamaha OPL3-SA2 / SA3 sound type: Yamaha PCI YMF72x, YMF74x & YMF75X Sound Card Type: Oak Mozart Sound Card Type: S3 Sonicvibes PCI Sound Card Type: Schubert 32 PCI (PINE) Sound Card Type: Ensoniq Audiopci (ES1370, ES1371) Sound Card Type: SoundBlaster PCI 64 Sound Card Type: SoundBlaster PCI 128 Sound Card Type: Cirrus Logic / Crystal Semiconductors CS4232 / CS4232A sound card type: Cirrus Logic / Crystal Semiconductors CS4235 / CS4236 / CS4236B / CS4237B / CS4238B / CS4239 sound card type: Turtle Beach Malibu sound card type: Cirrus Logic / Crystal Semiconductors CS4610 / CS4612 / CS4615 / CS4280 sound card type: ESS Solo -1 ES1938 Sound Card Type: ESS ES18XX Sound Card Type: Opti 82c9xx Sound Card Type: Audio 16 Pro EPC-Soun9301 (82C930 Based) Sound Card Type: ExpertColor Med-3931 V2.0 (82C931 Based) Sound Card Type: ExpertMedia Sound 16 MED-1600 ( 82C928 BAS ED - AD1848) Sound Card Type: Mozart S601206-G (OTI601 Based - CS4231) Sound Card Type: Sound Player S-928 (82C928 BASED - AD1848) Sound Card Type: Trident 4DWave DX / NX Sound Card Type: Best Union Miss Melody 4DWave PCI Sound Card Type : HIS 4DWave PCI card type: Warpspeed ONSpeed ​​4DWave PCI card type: AzTech PCI 64-Q3D sound type: Addonics SV 750 sound type: CHIC True sound 4Dwave card type: Shark Predator4D-PCI card type: Jaton SonicWave 4D sound type: Hoontech SoundTrack Digital 4DWave NX Sound Card Type: Fortemedia FM801 Sound Card Type:

DT-0398 Sound Card Type: SGI INDY (HAL2) Sound Card Type: Turtle Beach Wavefront Sound Card Type: Tropez Plus (Tropez ) Sound Card Type: Tropez Sound Card Type: Maui (Models with CS4232; Others Use Opti 16 Which Is Not Handled) Sound Card Type: C-Media CMI8330 sound card type: C-Media CMI8338 / 8738 sound card type: Avance Logic ALS100 / ALS120 sound card type: Diamond Technologies DT-0197H card type: Aztech Sound Galaxy sound card type: MOTU MidiTimePiece AV multiport MIDI interface card type: EMU10K1 card type : Sound Blaster Live! Sound Card Type: Sound Blaster PCI 512 Sound Card Type: E-MU APS Sound Card Type: Rme Digi9652 (Hammerfall, Hammerfall Light) Sound Card Type: Intel I810 / I820 / I830 / I840 / MX440 Sound Card Type: Ess Maestro 1 / 2 / 2E Sound Card Type: VIA 82C686A (South Bridge) If your sound card is no longer column, please download the latest version of the software.

Author: unknown

Source: enet

转载请注明原文地址:https://www.9cbs.com/read-3700.html

New Post(0)