也谈ubuntu7.04intel声卡检测到无发声问题

也谈ubuntu7.04intel声卡检测到无发声问题

本文参照:http://forum.ubuntu.org.cn/about50865-0-asc-0.html,感谢fifawqm和goodlucky。

0.检测声卡

# lspci | grep audio

00:1f.5 Multimedia audio controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller (rev 02)

1. sudo apt-get install build-essential ncurses-dev linux-headers-`uname -r`

2.下载alsa

a. http://www.alsa-project.org/alsa/ftp/driver/下载alsa-driver-1.0.14rc4.tar.bz2
b. http://www.alsa-project.org/alsa/ftp/lib/ 下载alsa-lib-1.0.14rc4.tar.bz2
c. http://www.alsa-project.org/alsa/ftp/utils/ 下载alsa-utils-1.0.14rc4.tar.bz2

3.解压

sudo mkdir -p /usr/src/alsa
cd /usr/src/alsa
sudo cp /下载的三个压缩包路径/*   ./
sudo tar xjf alsa-driver-1.0.14rc4.tar.bz2
sudo tar xjf alsa-lib-1.0.14rc4.tar.bz2
sudo tar xjf alsa-utils-1.0.14rc4.tar.bz2


4. 装备utilities
#cd alsa-utils-1.0.14rc4
#./configure && make && make install

5.修改atiixp.c
#cd ../alsa-driver-1.0.14rc4
#sudo gedit  alsa-kernel/pci/atiixp.c
在290行左右有一个结构
static struct pci_device_id snd_atiixp_ids[] = {
{ 0x1002, 0x4341, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* SB200 */
{ 0x1002, 0x4361, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* SB300 */
{ 0x1002, 0x4370, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* SB400 */
{ 0, }
};
加一行,成如下
static struct pci_device_id snd_atiixp_ids[] = {
{ 0x1002, 0x4341, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* SB200 */
{ 0x1002, 0x4361, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* SB300 */
{ 0x1002, 0x4370, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* SB400 */
{ 0x1002, 0x4382, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* SB600 */
{ 0, }
};

6.
编译,安装
#./configure && make && make install

7.
#modprobe snd-atiixp

8.
#alsamixer
调节声音(注意的是,声卡是静音的,要打开)

你可能感兴趣的:(也谈ubuntu7.04intel声卡检测到无发声问题)