Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to compile Sound Card driver with Linux

2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Linux how to compile the sound card driver, in view of this problem, this article introduces the corresponding analysis and solution in detail, hoping to help more partners who want to solve this problem to find a more simple and easy way.

About the Linux compiled sound card driver:

When you first buy a Hewlett-Packard laptop and install Debian 5, you usually encounter two problems. One is that the wireless network card driver is not installed, and the other is that "you can listen to music with headphones, but the loudspeaker cannot make sound."

For the previous question, please refer to the article GNU Wireless Internet access-BCM4312 driver installation

The second problem is mostly due to the low version number of the Debian 5 sound card driver, so as long as you download the * * sound card driver, the compiler and installation can solve the problem.

The steps are as follows:

1. Download the driver from the alsa home page and extract it to the current directory

Website http://www.alsa-project.org, download

Alsa-driver-1.0.21.tar.bz2

Alsa-lib-1.0.21a.tar.bz2

Alsa-utils-1.0.21.tar.bz2

$pwd / home/c-aries/download/alsa $ls alsa-driver-1.0.21.tar.bz2 alsa-lib-1.0.21a.tar.bz2 alsa-utils-1.0.21.tar.bz2 $tar xf alsa-driver-1.0.21.tar.bz2 $tar xf alsa-utils-1.0.21.tar.bz2 $tar xf alsa-lib-1.0.21a.tar.bz2 $ls- F alsa-driver-1.0.21/ Alsa-lib-1.0.21a/ alsa-utils-1.0.21/ alsa-driver-1.0.21.tar.bz2 alsa-lib-1.0.21a.tar.bz2 alsa-utils-1.0.21.tar.bz2 $

two。 Install the necessary software packages and close the sound card

$sudo apt-get install build-essential ncurses-dev gettext xmlto linux-headers- `uname-r` libncursesw5-dev $sudo / etc/init.d/alsa-utils stop

3. Function libraries related to soft links

Run the following command only when there is an error in compilation, such as reporting an error

Checking for new_panel in-lpanelw... No

Configure: error: panelw library not found

Link command:

$sudo ln-s libpanelw.so.5 / usr/lib/libpanelw.so $sudo ln-s libformw.so.5 / usr/lib/libformw.so $sudo ln-s libmenuw.so.5 / usr/lib/libmenuw.so $sudo ln-s libncursesw.so.5 / lib/libncursesw.so

4. Compile and install alsa-driver,alsa-lib,alsa-utils in turn

$pwd / home/c-aries/download/alsa/alsa-driver-1.0.21 $. / configure $make $sudo make install $pwd / home/c-aries/download/alsa/alsa-lib-1.0.21a $. / configure $make $sudo make install # need to compile alsa-driver and alsa-lib before compiling alsa-utils Otherwise, there will be an error of $pwd / home/c-aries/download/alsa/alsa-utils-1.0.21 $. / configure $make $sudo make install when running configure

5. Restart the system to check the sound card driver version number

$cat / proc/asound/version Advanced Linux Sound Architecture Driver Version 1.0.21. Compiled on Dec 9 2009 for kernel 2.6.26-2-686 (SMP). $

6. Configure sound card and adjust volume

# close the sound card $sudo / etc/init.d/alsa-utils stop # configure the sound card, select the sound card to configure, our small book chose hda-intel $sudo alsaconf # to adjust the volume, set both Master and PCM to 100. the sound of the external loudspeaker is very loud > _ < # hint: press the m key, such as the OO flag appears under Master, indicating that this option can be used Press the m key again, for example, the MM flag appears under Master, indicating that this option is disabled $alsamixer. The answer to the question about how Linux compiles the sound card driver is shared here. I hope the above content can be of some help to everyone. If you still have a lot of doubts to be solved, you can follow the industry information channel for more related knowledge.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report