红联Linux门户
Linux帮助
当前位置: 红联Linux门户 > Ubuntu

有关声卡问题的参考解决方法

发布时间:2008-04-28 13:39:10来源:红联作者:zhanghao1216
问题:我的本本的声卡"82801G (ICH7 Family) High Definition Audio Controller"
之前是公放有声,插上耳机,耳机没声,公放依然有声
论坛上提出过两次,网友的方法都不起作用。最后在ubuntu官网论坛上找到了方法。现给出如下:

1.安装编译环境
代码:
sudo apt-get install build-essential gettext libncurses5-dev

2.安装hwinfo,查看声卡的Driver Modules:
代码:

sudo apt-get install hwinfo
hwinfo --sound


找到Driver Modules:"XXX",XXX就代表你的声卡驱动类型.例如,我的声卡:
代码:
$ hwinfo --sound
20: PCI 10.1: 0403 Audio device
[Created at pci.296]
UDI: /org/freedesktop/Hal/devices/pci_10de_26c
Unique ID: wRyD.uNrQ0R67Yj2
SysFS ID: /devices/pci0000:00/0000:00:10.1
SysFS BusID: 0000:00:10.1
Hardware Class: sound
Model: "ASUSTeK MCP51 High Definition Audio"
Vendor: pci 0x10de "nVidia Corporation"
Device: pci 0x026c "MCP51 High Definition Audio"
SubVendor: pci 0x1043 "ASUSTeK Computer Inc."
SubDevice: pci 0x1153
Revision: 0xa2
Driver: "HDA Intel"
Driver Modules: "snd_hda_intel" #这里就是你的声卡类型,在下面编译的时候要用到
Memory Range: 0xdbfb8000-0xdbfbbfff (rw,non-prefetchable)
IRQ: 23 (3051 events)
Module Alias: "pci:v000010DEd0000026Csv00001043sd00001153bc04sc03i00"
Driver Info #0:
Driver Status: snd_hda_intel is active
Driver Activation Cmd: "modprobe snd_hda_intel"
Config Status: cfg=new, avail=yes, need=no, active=unknown


3.下载最新的Alsa驱动包
ftp://ftp.alsa-project.org/pub/driver/alsa-driver-1.0.16.tar.bz2
ftp://ftp.alsa-project.org/pub/lib/alsa-lib-1.0.16.tar.bz2
ftp://ftp.alsa-project.org/pub/utils/alsa-utils-1.0.16.tar.bz2

4.解压、编译、安装驱动程序
假设下载的三个bz2文件在主目录下($),执行以下命令:
代码:

bunzip2 *.bz2
tar -xf alsa-driver-1.0.16.tar
tar -xf alsa-lib-1.0.16.tar
tar -xf alsa-util-1.0.16.tar
cd alsa-driver-1.0.16
sudo ./configure --with-cards=hda-intel --with-sequencer=yes ; sudo make ; sudo make install
#注意,with-cards的值要和上面的红字部分一致
cd ..
cd alsa-lib-1.0.16
sudo ./configure ; sudo make; sudo make install;
cd ..
cd alsa-util-1.0.16
sudo ./configure ; sudo make; sudo make install;


5.重启电脑,一切OK,不用更改任何配置文件。
文章评论

共有 1 条评论

  1. altaitai 于 2008-04-28 15:30:05发表:

    谢谢指教