LinuxSir.cn,穿越时空的Linuxsir!

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

为VIA8233声卡提出解决方案!弥补论坛中原ALSA方案的不足!

[复制链接]
发表于 2002-11-12 21:21:45 | 显示全部楼层 |阅读模式
首先当然要以ROOT用户登录(或在终端下su到ROOT用户)。
解压缩alsa-driver-0.9.0rc5.tar.bz2:
#tar jxvf alsa-driver-0.9.0rc5.tar.bz2
进入刚刚解压得到的目录:
#cd alsa-driver-0.9.0rc5
执行:
1、#./configure
INSTALL原文如下:
引用:
Run './configure' script.
If you have ISA Plug & Play soundcard, use --with-isapnp=yes switch.
If you want sequencer support, use --with-sequencer=yes switch.
If you do not want OSS/Free emulation, use --with-oss=no switch.
If you want turn on debug mode use --with-debug=full switch.
If you want debug soundcard detection try --with-debug=detect switch.
If you have kernel source code in another directory than /usr/src/linux,
use --with-kernel=<kernel_directory>

请大家根据自己的的实际情况加入相应的参数(主板自带的VIA8233声卡不用加参数,直接configure就行了)。
2、#make install
3、./snddevices
INSTALL原文:
引用:
Run the './snddevices' script to create new sound devices in /dev directory.
Skip this step, if you have a kernel with the DEVFS support.(执行./snddevices脚本以在/dev目录下创建新的声卡设备。
如果你的内核支持DEVFS(什么东东?我不知道。),可以跳过这一步。)

呵呵,因为我不知道DEVFS是什么,所以我不管它,直接就执行snddevices。
4、编辑/etc/modules.conf。如果你知道该怎么编辑那就最好了,如果不知道,呵呵,不要紧,你可以运行./utils/alsaconf,让它来帮你编辑,你所需要做的就只是选择你的声卡就行了。(原来我并不知道alsa-driver-0.9.0rc5已经自带了这个东东,所以在公社提供的ALSA包里又给出了这个程序)。
下面请看我的modules(VIA8233声卡):
引用:

alias parport_lowlevel parport_pc
alias eth0 8139too
alias sound-slot-0 via82cxxx_audio
post-install sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -L >/dev/null 2>&1 || :
pre-remove sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -S >/dev/null 2>&1 || :
alias usb-controller usb-uhci
alias char-major-116 snd
alias snd-card-0 snd-card-x
alias char-major-14 soundcore
alias sound-slot-0 snd-card-0
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
options snd snd_major=116 snd_cards_limit=1 snd_device_mode=0666 snd_device_gid=0 snd_device_uid=0
options snd-card-x snd_index=0 snd_id=CARD_0 snd_mpu_port=0x300 snd_joystick=0x300 snd_pbk_frame_size=128 snd_cap_frame_size=128
alias char-major-195 NVdriver

5、modprobe snd-xxxx。xxxx是你的声卡模块,在alsa-driver-0.9.0rc5中VIA8233的模块是via82xx(在以前版本中是via8233),所以如果用VIA8233声卡的朋友应该用下面的命令:
modprobe snd-via82xx
用其它声卡的朋友可以在/lib/modules/(内核版本目录,比如2.4.18-17.8.0)/kernel/sound/看看自己的声卡模块是什么(当然,你的声卡得是ALSA支持的才行)。


OK,如果这个过程中没有什么错误的话,驱动到此就装完了。
然后把音量都调高,“音量控制”、kmix等等都可以。不过在这里我有一个问题,那就是在KDE中音量可以保存,而在GNOME中,音量总是无法保存,每次启动都得调一下音量。
呵呵,打开播放器,来点MUSIC吧!!!(这个驱动的音质已经相当不错了,感觉跟WINDOWS下的差不多甚至更好。)
最后我们做点善后工作,让系统启动时自动加载ALSA声卡模块:
ln /etc/rc.d/init.d/alsasound /etc/rc.d/rc5.d/S87alsasound(S87听说是启动顺序,我对这个不大清楚,随便弄了一个S97也很正常,呵呵。)
然后在ntsysv中选中它就可以了。
保险一点的话,再在/etc/rc.local中加入下面一行命令:
modprobe snd-via82xx(其它声卡请作相应修改)。
发表于 2002-11-13 10:55:59 | 显示全部楼层
精品,详尽无比,dgqbkl兄弟为菜鸟弟兄们造福了。
请有此声卡的菜鸟弟兄,没有成功的安装驱动的,请参考本帖。
在此向dgqbkl兄弟致谢!
发表于 2002-11-14 04:19:07 | 显示全部楼层
好,十分详细
发表于 2002-12-10 23:38:18 | 显示全部楼层

还是via8233板载声卡问题,求救!!

各位好,我是个新手,前天装上了redhat8.0,可是自己的VIA AC97声卡可以检测到,就是没有声音啊,在命令行下输入redhat-config-soundcard,测试声音,提示说找不到这个设备,但就是可以检测到啊?
   我没有找到支持redhat8.0的VIA AC97驱动程序,下载了支持redhat7.3的声卡安装,执行#sh vinstall,提示说内核不对,这怎么办啊?难道redhat8.0的内核就要升级?我觉得不是这个原因,可是也不知道怎么做,请各位指点,先在这里谢谢各位了。
发表于 2002-12-10 23:41:41 | 显示全部楼层
自己安装一下试试看。。就用这个帖子,我把帖子合并了。。
到这个网站下载dgqbkl兄弟说的驱动。

http://www.alsa-project.org/
发表于 2002-12-11 13:59:36 | 显示全部楼层

南北兄弟哥,帮帮俺!!

我是我们班上唯一一个装了linux的,版本是redhat8.0,我觉得挺爽的,不过他们都说linux是垃圾,我心里不好受,我想把我的linux优化得好好的,让他们瞧瞧,不过现在有几个问题
一.没声音,系统识别了,说是vt8233 ac97 audio controller  版本via82cXXX audio
我的声卡是集成的,主板说明书上面说的是realtek alc650 6_channel audio
是不是系统把我的声卡版本检测错了?怎么办
二.显卡,系统识别为gf 4,这个没错,但是我打开
xf86config看了一下,
Section "Device"
        Identifier  "Videocard0"
        Driver      "vesa"
        VendorName  "Videocard vendor"
        BoardName   "NVIDIA GeForce 4 (generic)
而且里面的游戏玩起来很卡.
请教南北兄弟
谢谢啦


声卡就用这帖。
显卡用下面这帖。请在下面的链接后面跟帖。
http://www.linuxsir.cn/forum.php?mod=viewthread&tid=8024

北南 加注

发表于 2002-12-11 21:57:03 | 显示全部楼层
兄弟把问题解决了???
发表于 2002-12-11 23:47:25 | 显示全部楼层

救命:为什么我编译alsa不能通过?

我的机器是845G主板,集成的声卡是Avance AC97声卡.
装了RedHat8.0后,声卡不能发声.
我从www.alsa-project.org下了三个包
alsa-proalsa-driver-0.5.12a.tar.bz2,
alsa-lib-0.5.10b.tar.bz2,alsa-utils-0.5.10.tar.bz2
准备按照前面弟兄们的指点编译一把.
在/usr/src/alsa中解开driver包
./configure没有问题
但在make的时候出错,信息如下:

make dep
make[1]: Entering directory `/usr/src/alsa/alsa-driver-0.5.12a'
ln -sf ../support/isapnp.h include/isapnp.h
make[2]: Entering directory `/usr/src//alsa/alsa-driver-0.5.12a/kernel'
rm -f ../include/modules/sound.ver
gcc   -DALSA_BUILD -D__KERNEL__ -I/usr/src/linux/include -I.. -E -D__GENKSYMS__ sound.c | /sbin/genksyms -k 0.0.0 > ../include/modules/sound.ver
In file included from /usr/src/linux/include/linux/config.h:4,
                 from ../include/driver.h:47,
                 from sound.c:23:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
Usage:
genksyms [-dDwqhV] [-k kernel_version] [-p prefix] > .../linux/module/*.ver

  -d, --debug           Increment the debug level (repeatable)
  -D, --dump            Dump expanded symbol defs (for debugging only)
  -w, --warnings        Enable warnings
  -q, --quiet           Disable warnings (default)
  -h, --help            Print this message
  -V, --version         Print the release version
  -k ver
       --kernel ver     Set the kernel version for which we are compiling
  -p string
       --prefix string  Set a mangling prefix for all symbols
make[2]: *** [../include/modules/sound.ver] Error 1
make[2]: Leaving directory `/tmp/alsa/alsa-driver-0.5.12a/kernel'
make[1]: *** [dep] Error 1
make[1]: Leaving directory `/tmp/alsa/alsa-driver-0.5.12a'
make: *** [include/sndversions.h] Error 2

我的内核代码包在/usr/src/linux下,版本是2.4.18-14
怎么回事???请兄弟们帮帮忙.
太郁闷了,都搞了几个晚上了,还没能脱离无声世界.
热盼兄弟们帮我脱离苦海!!!不胜感激!!!
发表于 2002-12-11 23:56:18 | 显示全部楼层
安装alsa-driver的命令:
rm include/linux/isapnp.h &&
./configure \
   --with-moddir=/lib/modules/<kernel-version>/kernel/drivers/sound/ \
   --with-kernel=<path-to-kernel-source-tree-to-build-for> \
   --with-sequencer=yes \
   --with-oss=yes \
   --with-isapnp=no \
   --with-cards=<soundcards-to-compile> &&
make &&
make install
其中尖括号里的内容要改的。
发表于 2002-12-12 22:20:39 | 显示全部楼层
to tram:
我按照tram老兄的指点试了一下,还是不行,问题如故。
从“/sbin/genksyms -k 0.0.0 ”来看好像没有找到正确的
内核版本号,为什么会这样呢?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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