The source code copy from www.alsa-project.org. ver:a1.70
Linux Source Code for ALC audio codec
Installation:
This Source Code is from www.alsa-project.org.
For driver installation, please follow below steps.
#安装
Step 1. You must have full configured source for the Linux kernel.
#你必须有足够的权限
Step 2. Uncompress the source code
a. tar xfvj alcsound.tar.bz2
or b. unbzip2 alcsound.tar.bz2
tar -xvf alcsound.tar
#解压
Step 3. Turn on sound support (soundcore module)
#打开声音支持(默认)
Step 4. Complied source code
a. ./Configure
b. make install
c. ./snddevices
#编译
Step 5. Edit your /etc/modules.conf or conf.modules depending on the Distribution
(Please refer to the attached modules.conf)
#编辑你的/etc/modules.conf,参照modules.conf
Step 6. reboot your machine
#这个知道吧,哈
Note: 1. The most detail information, can refer the INSTALL file in the alcsound.tar.bz2.
2. Kernel Version must be 2.2.14 or later.
3. All mixer channels are muted by default. You must use a native
or OSS mixer program to unmute appropriate channels.
4. If can not compile the source code, try to rename the /usr/src/linux-2.x -> /usr/src/linux.
5. The driver added to support the SPDIF functoin.
#注意:内核必须是2.2.14或者以后的
如果不能完成编译源码,rename the /usr/src/linux-2.x -> /usr/src/linux.
好,看了这个,我们开始
这个其中没有提到的需要我们体会到的就是linux内核原码的安装kernel-source-2.4.20-8.i386.rpm
安装后需要改名字,不改也可以!但是后面需要注意
#./configure
(可惜没有保存提示)
不能成功,郁闷?不要着急,看看错误提示
原来是没有指定指定编译的源码,详细的操作看相关教程--with-kernel=...
--with-moddir=/path give the path for the alsa driver kernel modules
/lib/modules/<KVER>/misc