Compile the ALSA driver of Ubuntu by yourself to achieve better sound quality.

Source: Internet
Author: User
I didn't use speakers to listen to music for a long time. I was going to buy a pair of huiwei M200MK2 over the weekend. I tried CreativeSoundworksSW300, which has been in service for seven years, but found that the T60 sound card has a much worse sound quality than Windows sound, the idea of buying a speaker has to be done for the moment. After searching online for half a day, I found a way to compile an ALSA driver, replace the driver that comes with Ubuntu, and change it to listen to it. There has indeed been a lot of progress, the following are the operation steps: first, get the software package required for compilation for a long time without listening to music using speakers. On weekends, I was going to buy a pair of huiwei M200 MK2. Before that, I tried Creative Soundworks SW300, which has been in service for seven years, however, it was found that the T60 sound card had a much worse sound quality in Ubuntu than in Windows. The idea of purchasing a speaker had to be done for the moment.

After searching online for half a day, I found a way to compile an ALSA driver, replace the driver that comes with Ubuntu, and change it to listen to it. There has indeed been a lot of progress, the procedure is as follows:

First, obtain the required software package for compilation:
Sudo apt-get install build-essential ncurses-dev gettext

Then
Sudo apt-get install linux-headers-'uname-R'

Before compilation and replacement, you must stop the current ALSA service:
Sudo/etc/init. d/alsa-utils stop
Sudo/etc/init. d/alsasound stop

Create a directory to compile the alsa driver
Mkdir alsa-src
Cd alsa-src

Then download
Wget ftp://ftp.alsa-project.org/pub/d... r-1.0.14rc3.tar.bz2
Wget ftp://ftp.alsa-project.org/pub/lib/alsa-lib-1.0.14rc3.tar.bz2
Wget ftp://ftp.alsa-project.org/pub/utils/alsa-utils-1.0.14rc2.tar.bz2

Unpack
Tar xvjf alsa-driver-1.0.14rc3.tar.bz2
Tar xvjf alsa-lib-1.0.14rc3.tar.bz2
Tar xvjf alsa-utils-1.0.14rc2.tar.bz2

Download the corresponding patch file before compilation.
Wget http://lenovo.dropshock.com/files/realtek6.tar.gz

Replace source files with patch files
Tar xvzf realtek6.tar.gz
Cp patch_realtek.c ~ /Alsa-src/alsa-driver-1.0.14rc3/alsa-kernel/pci/hda/

Compile now
Cd alsa-driver-1.0.14rc3
./Configure -- with-cards = hda-intel
Make
Sudo make install

Cd./alsa-lib-1.0.14rc3
./Configure
Sudo make install

Cd./alsa-utils-1.0.14rc2
./Configure
Sudo make install

Well, the compilation is complete, and the rest is to replace the original alsa driver.

Sudo modprobe-r snd-hda-intel & sudo modprobe snd-hda-intel

Restart alsa
Sudo/etc/init. d/alsa-utils restart
Sudo/etc/init. d/alsasound restart

Restart Ubuntu and you may find a red cross on the volume icon. You need to cancel the PCM mute on the volume control interface. Listen again, and the sound quality is quite good.
Related Article

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.