特别引用,文章来源:http://blog.csdn.net/xlfarm/article/details/6771997
第一步:Upgrade Alsa (1.0.23) on Ubuntu Lucid Lynx 10.04 (升级声卡驱动)
![解决ubuntu10.04插上耳机仍有外音问题 - 照魂销 - 照魂销](https://i-blog.csdnimg.cn/blog_migrate/62714ab7dacf9a1968570dbfab32bbf4.gif)
To do this, we must begin by determining our version of alsa as follows :
cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version 1.0.21.
To avoid problems during the upgrade of Alsa-utils, we need to stop it with the following command :
sudo /sbin/alsa-utils stop
sudo apt-get -y install build-essential ncurses-dev gettext xmlto libasound2-dev
sudo apt-get -y install linux-headers-`uname -r` libncursesw5-dev
Then, we go in our personal folder and download alsa-driver, alsa-lib and alsa-utils :
cd ~
rm -rf ~/alsa* ~/.pulse*
wget ftp://ftp.alsa-project.org/pub/driver/alsa-driver-1.0.23.tar.bz2
wget ftp://ftp.alsa-project.org/pub/lib/alsa-lib-1.0.23.tar.bz2
wget ftp://ftp.alsa-project.org/pub/utils/alsa-utils-1.0.23.tar.bz2
After that, we create a new folder for the compilation and installation of the 3 files. Then, we move the 3 tar files that we just downloaded in this folder :
sudo rm -rf /usr/src/alsa
sudo mkdir -p /usr/src/alsa
cd /usr/src/alsa
sudo cp ~/alsa* .
Unpack the 3 tar files :
sudo tar xjf alsa-driver*
sudo tar xjf alsa-lib*
sudo tar xjf alsa-utils*
We compile and install alsa-driver :
cd alsa-driver*
sudo ./configure
sudo make
sudo make install
We compile and install alsa-lib :
cd ../alsa-lib*
sudo ./configure
sudo make
sudo make install
We compile and install alsa-utils :
cd ../alsa-utils*
sudo ./configure
sudo make
sudo make install
Then, we remove the 3 tar files in our personal folder that are not anymore necessary :
rm -f ~/alsa-driver*
rm -f ~/alsa-lib*
rm -f ~/alsa-utils*
Then, just restart your computer and your alsa version should be 1.0.23!
You can verify that you have now indeed have this version of alsa :
cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version 1.0.23.
Compiled on May 2 2010 for kernel 2.6.32-21-generic (SMP).
Just to be sure everything is well configured, execute this command :
sudo alsaconf
and reboot again!
第二步:配置alsa-base.conf文件
输入以下指令
sudo gedit /etc/modprobe.d/alsa-base.conf
打开alsa-base.conf后在最后一行添上options snd-hda-intel model=xxxxx 注意等号两边没有空格。
如果没法更改则可能权限不够,输入指令:
cd /etc/modprobe.d/
chmod 777 alsa-base.conf
下面最重要的就是xxxxx的配置。快捷键ctrl+f进入搜索功能,输入ALSA-Configuration.txt查找后打开,然后根据自己的声卡配置,不知道的同学可以在终端下输入alsamixer,card和chip后的名称则分别是声卡和芯片。我的电脑是华硕,改成asus不能用,最后改成lenovo-3000就行了。
如果懒得查找的同学可以把options snd-hda-intel model=xxxxx更改为以下试试;
options snd-hda-intel model=lenovo-3000
options snd_hda_intel model=lenovo-nb0763
options "snd_hda_intel" model=lenovo-101e
options snd-hda-intel model=acer
options snd-hda-intel model=ideapad
options snd-hda-intel model=auto
options snd-hda-intel model=asus
在执行第一步(升级声卡驱动)之前,可以先执行第二步(更改配置),然后重启,检查耳机是否有声音。
如果没有声音,执行第一步。
Samsung 电脑配置:
options snd-hda-intel model=samsung-p50
关健是后面的model:xxxxx, 注意改成自己机器对应的.