Linux system Debian How to compile the sound card driver

Source: Internet
Author: User
Tags bz2

When the HP notebook was first bought, installing Debian 5 would normally run into two problems.

One is the wireless card driver is not installed, one is "with headphones can listen to music, but the speaker is not audible."

For the previous question, please refer to the article GNU Small wireless internet-bcm4312 driver installation

The second problem, most of which is that the sound card driver version number is too low for Debian 5, so just download the latest sound card driver and compile the installation to solve the problem.

The steps are as follows:

1. Download the latest drive to the ALSA homepage and extract it to the current directory

URL 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

$

2. Install the necessary packages, turn off 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. Soft link-related function libraries

Run the following command when compiling an error, such as 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

$ 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

#需要编译安装了alsa-driver and Alsa-lib to compile alsa-utils, or error when running configure

$ pwd

/home/c-aries/download/alsa/alsa-utils-1.0.21

$./configure

$ make

$ sudo make install

5. Reboot the system to view the sound card driver version number

$ cat/proc/asound/version

Advanced Linux Sound Architecture Driver Version 1.0.21.

Compiled on the Dec 9 2009 for Kernel 2.6.26-2-686 (SMP).

$

6. Configure the sound card to adjust the volume

#关闭声卡

$ sudo/etc/init.d/alsa-utils Stop

#配置声卡, select the sound card to configure, my small Ben chose Hda-intel

$ sudo alsaconf

#调节音量, the master and PCM are tuned to 100, the external speakers sound very large >_<

#提示: Press the M key, such as the OO flag below master to indicate that the option is available, and then press the M key again, such as the MM flag below master, to indicate that the option is disabled

$ alsamixer

Reference Resources

1. Upgrade Alsa (1.0.21) on Ubuntu jaunty 9.04 | To a free world

http://monespaceperso.org/blog-en/2009/08/31/upgrade-alsa-1-0-21-on-ubuntu-jaunty-9-04/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.