LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1074|回复: 4

ALi 5451 audio driver in Rh 9.

[复制链接]
发表于 2003-4-27 05:24:16 | 显示全部楼层 |阅读模式
ALi 5451 audio driver for linux kernel 2.4.X
============================================

Copyright (C) 1999-2001 Acer Laboratories Inc.
Revision 0.14.9

-----------------------
ALi 5451 PCI Audio Core
-----------------------

ALi 5451 PCI Audio Core is embedded in ALi M1535, M1535D, M1535+ or M1535D+
South Bridge.It's PCI ID is 10b9:5451, you can use command:
/sbin/lspci -n        or cat /proc/pci | grep 5451
to determine whether your sound card uses ALI 5451 chipset. If yes, just do
the following steps to install the driver for it.

------------------------
Modification from 0.14.8
------------------------

Add H/W Volume Control Support

-----------------
Files Description
-----------------

trident.c        source code c file
trident.h        source code head file
readme.txt        this file

------------------
Installation Guide
------------------

To install the driver, you should reconfig and recompile your linux kernel,
but don't worry, because it's very easy.
Make sure that your kernel is 2.4.X and you have the kernel development
package installed to your system.

First of all, copy trident.c and trident.h to /usr/src/linux/drivers/sound,
and overwrite the original files. (Make a backup of the original ones.)

Install as a kernel module
--------------------------

Step 1:
change directory to /usr/src/linux
"make menuconfig" or "make xconfig"
then select Sound
select "Sound card support" as "m"
select "Trident 4DWave DX/NX SiS 7108 or ALi 5451 PCI Audio Core" as "m"
save the change.       

Step 2:
make dep
make modules
make modules_install

Step 3:
To run the driver for the first time:
depmod -a

Step 4:
modprobe trident

Step 5:
If the driver runs well, then add
For Slackware, "modprobe trident" in the file /etc/rc.d/rc.modules.
For Cardera Linux user, use LISA to load the module.
For RedHat linux, add "alias sound trident" in the file /etc/conf.modules.

Step 6:
Reboot and then complete.


Install as a part of linux kernel
---------------------------------

Step 1:
change directory to /usr/src/linux
Run command  "make menuconfig" or "make xconfig", then select Sound item,
select "Sound card support" as "y"
select "Trident 4DWave DX/NX SiS 7108 or ALi 5451 PCI Audio Core" as "y"
Before exit, save your configration;

Step 2:
make dep
make bzImage
cp arch/i386/boot/bzImage /boot/bzImage-new

Step 3:
If you use lilo to boot your linux, then
1)        modify the file /etc/lilo.conf, add
image=/boot/bzImage-new
label=linux-new
root=????
read-only
ps. ???? is the disk partition where your linux resides in, for example
/dev/hda1
2) lilo -D linux-new
3) reboot to the kernel linux-new and then complete.

if you use loadlin to boot your linux, just run loadlin with bzImage-new
to boot your linux,
then complete.

--------------------------------------------------------------------------------

If you have problems with the driver, please contact with us.

cling-li@ali.com.tw
matt_wu@acersoftech.com.cn

Thanks for using ALi audio device and this driver.


1-6的步骤我一步也装不能执行,我用的是RD9.0  2.4.20-8
发表于 2003-4-27 10:27:38 | 显示全部楼层
首先我要说的是Trident这个声卡,已经支持了,要用下面的命令来查看声卡的芯片
#lspci
如果出现是的 Trident 4DWave DX/NX, SiS 7018 or ALi 5451 PCI这个声卡。要到下面的目录查看是否有

# ls /lib/modules/2.4.20-8/kernel/drivers/sound/trident.o
如果有,这证明已经支持了。我们没有必要做下面的编译内核的动作了。
如果和上面的情况符合,我们要用下面的命令来初始化声卡及测试。

#sndconfig
如果能听到声卡,其实声卡就已经能用了。可以用xmms来放一首歌 。对于redhat 8.0和redhat 9.0要安装一个xmms的补丁。

http://havardk.xmms.org/dist/xmm ... 3-1.2.7-21.i386.rpm

#rpm -ivh xmms-mpg123-1.2.7-21.i386.rpm

运行xmms应该会吧

如果和上面的不相符,应该用下面的办法 。。。。。

这样来做,要安装一下kernel-source的包。然后做一个链接
#cd  /usr/src
# ln -s linux-2.4.20-8 linux
一,配制内核

#cd linux
#make menuconfig
用键盘移动来
选择 Sound  ---> ,进入后。我们在下面这三项的前面,按M键。这样就把声卡支持和ALi的配制为查模块了。

<M> Sound card support   

<M>   ALi5455 audio support

<M>   Trident 4DWave DX/NX, SiS 7018 or ALi 5451 PCI Audio Core      

也就是说,看上面三个选项的前面必须是M的。

然后一步一步的退出来,记得[保存]
Do you wish to save your new kernel configuration?     
         
                             < Yes >      <  No  >     

二。编译。还是在/usr/src/linux目录下进行

#cd /usr/src/linux
#make dep
#make modules
#make modules_install

三。加载,也是在/usr/src/linux目录中进行

#depmod -a
#modprobe trident

四。修改/etc/modules.conf,加入下面一行

alias sound trident

五。重新启动系统。

六。试着看一下是不是有声音了??可以用xmms来放一首歌 。对于redhat 8.0和redhat 9.0要安装一个xmms的补丁。

http://havardk.xmms.org/dist/xmm ... 3-1.2.7-21.i386.rpm

#rpm -ivh xmms-mpg123-1.2.7-21.i386.rpm

七。运行xmms应该没有问题吧
发表于 2003-4-27 11:42:49 | 显示全部楼层
北南南北的方法是没有错的,但是这块卡在rh9下就是不能工作。rh8是可以的,mdk9.1中是要换成alsa的驱动才可以。

至少在我这儿是这个样子。

解决的方法有二。
一,用www.kernel.org 的2.4.20的内核源码包重新编译内核。
二,用alsa 0.90的驱动,或者 oss的最新的驱动。不过用oss的新的
驱动的时候还是有点问题的。安装结束后test是有声音的,但是重启后就没有了。(我已经开了oss的服务了)我的解决方法是,删掉oss驱动生成的moudle.conf文件,用回原来的(安装oss的时候会自动备份的)。重启,虽然会有一段错误提示,但是声卡是能用了。在xmms,mplayer,realplayer9中一切正常。
 楼主| 发表于 2003-4-29 11:33:21 | 显示全部楼层
楼上的说的对,RE8我试过能用的,但升级到9。0就没声音了,连着报错。 但我怎么修复呢?
发表于 2003-4-29 13:30:07 | 显示全部楼层
我不是说了吗,我就是这样解决的。

现在用的很好。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表