Linux下声卡驱动软件ALSA的安装与配置 (oss yamaha alsa 支持的声卡列表 )

hem 2001-05-24 09:30:00
加精
聆听自由的声音----Linux下声卡驱动软件ALSA的安装与配置
推荐:yy810310 发表日期:2000年12月9日 阅读次数:294
--------------------------------------------------------------------------------

  几年以来,尽管Linux凭借开放、自由的特性和强大的性能,在全球服务器市场上所向披靡,占据越来越多的市场份额,但是若作为桌面软件,Linux的多媒体特性一直不能让人非常满意。比如,Linux系统自带的声卡驱动程序能够支持的声卡很少。绝大多数市场上流行的声卡产品都难以得到系统的支持。

  这种情况正在迅速转变。许多厂商看到大势所趋,积极参加驱动程序的开发工作。一些组织和个人也开始一展身手,做了很多有益的探索。

  今天介绍的这套软件是一套声卡驱动程序包---ALSA, 全称是Advanced Linux Sound Architecture。它是GNU大旗下的软件之一。顾名思义,它可以在Linux下面驱动声卡设备。

 它可以支持大多数流行的声卡。模块化架构。支持全双工,数字音频等声卡特性。

  在http://www.alsa-project.org所属的FTP站点可以下载最新的软件包。如果你有兴趣和足够的能力,也可以加入开发队伍。向全世界展现聪明才智。

  下面详细介绍ALSA的全部安装配置过程和注意事项,还会给出支持的声卡列表。

  安装前请你对照列表,检查自己的声卡是否被支持。以免白忙一场。

一:硬件及其软件环境要求。

  作者的硬件环境:赛扬366 CPU/微星6199va主板/128MB kingmax内存/10.2GB金钻2硬盘/8X CDROM/WINFast L2300显卡/雅马哈724芯片的声卡

  硬盘分区和操作系统软件:Windows98+Windows2000+BluePoint1.0(蓝点中文Linux,与Redhat 完全兼容)。使用LILO启动器。

  ALSA对Linux软件环境的要求:没有要求特别的Linux版本,但是要求内核版本在2.2.x之上。如果你的Linux系统内核低于此版本,请重新编译新的核心。BluePoint1.0的内核版本是2.2.13。

二:下载软件。

  ALSA目前最新版本是0.5.9b,文件全名是alsa-driver-0.5.9b.tar.bz2。采用的新的bz2压缩格式,占用空间更小。除了它之外,正常操作还需要下面的软件包:

alsa-utils-0.5.9a.tar.bz2----------实用程序包

alsa-lib-0.5.9.tar.bz2-------------编译实用程序需要的库文件

  如果你是使用Windows操作系统下载的软件,那么需要把它拷贝到Linux系统里面。

  首先请使用root用户登录并开始安装过程。

1:在Linux里面装载含有此文件的Windows分区,

输入命令:

“mount -t vfat /dev/hadx /win98 ”其中hdax中的“x”是Win98硬盘分区号码。如果对此有任何疑问,请请教其他熟悉的朋友。

2:进入下载的目录,把alsa-driver-0.5.9b.tar.bz2和其它两个文件拷贝到一子目录中,

输入命令:

“cp alsa-driver-0.5.9* /root”

3:解压缩文件。

输入命令:

“bzip2 -dv alsa-driver-0.5.9b.tar.bz2”

此时用“ls”命令查看,当前目录里面只有alsa-driver-0.5.9b.tar,说明bzip压缩已经解除。

输入命令:

“tar vfx alsa-driver-0.5.9b.tar”

  程序自动生成一个名为---alsa-driver-0.5.9b的子目录。

  对其它两个软件包重复此步骤,解开压缩。使用“ls”命令查看,就会发现相应的目录了。

  如果你对命令行不够熟悉,可以查看帮助信息和书籍。也可以启动X-Window窗口环境,在文件管理程序里面选择相应压缩文件,然后在文件菜单里面选择解压缩命令就可以了。

三:安装驱动文件。

1:打开内核中的声卡支持。

绝大多数情况下,此步骤可以忽略,因为基本所有Linux发行版本内核默认状态都是支持声卡设备的。

2:运行脚本。

输入命令:

“./configure”

如果你的声卡属于ISA即插即用类型,请输入下面的命令:

“./configure --with-isapnp=yes”

输入命令:

“make install”

注意此步骤操作时间较长,请耐心等候。如果一切正常,程序最后会提示模块编译成功!并且警告声卡默认的状态是静音,需要使用“amixer”等实用程序调节音量。

“amixer”等命令正是alsa-utils-0.5.9a.tar.bz2附带的,需要编译才能使用。

如果make命令不能执行,那么你需要找出Linux安装盘,把有关开发编译的文件包安装进系统。具体操作请参考软件手册。

输入命令:

“./snddevices”

脚本程序会在“/dev“目录自动创建有关声卡设备。

四:安装库文件和实用程序。

由于“amixer”等程序需要找到对应的库文件才能编译,所以需要首先安装alsa-lib-0.5.9.tar.bz2。

进入相应的子目录alsa-lib-0.5.9,

输入命令:

“./configure”

输入命令:

“make install”

这两步做好后,回到上层目录,进入alsa-utils-0.5.9a子目录,

输入命令:

“./configure”

输入命令:

“make install”

注意,如果上面步骤中“./configure”出错,恐怕你需要使用“-prefix”参数来指定路径。

如:在安装库文件时尝试使用“./configure -prefix=/usr/include/linux”

在安装实用程序时尝试“./configure -prefix=/usr/include/sys”

五:编辑/etc/modules.conf文件。

这一步恐怕是最困难的一步了。不过下面给出范例,一般只要按照各自系统情况改动就可以了。

1:建立modules.conf文件。

因为系统里面有一个演示文件,所以只要复制一份,重新修改即可

输入命令:

“cp modules.conf.sample modules.conf”

2:修改modules.conf。

使用任何一种文本编辑器,如VI,打开此文件,在最下面加入下列内容:



#ALSA portion

alias char-major-116 snd

#注释:ALSA使用的主设备号码

alias snd-card-0 snd-card-ymfpci

#snd-card-0是系统里面第一个声卡设备,如果系统有两个以上声卡,

#可以使用snd-card-1 snd-card-2等方法映射

# snd-card-ymfpci是声卡设备名称.

#OSS /free portion----因为ALSA需要内核中OSS SoundCore和其它设备的支持

alias char-major-14 soundcore

#系统中soundcore的主设备号码

alias sound-slot-0 snd-card-0

#第一个声卡对应的插槽

#下面是声卡驱动模块,sound-service-0指第一块声卡,如果系统里面只有一块,原封不动#拷贝即可.否则按照此格式加入其它声卡驱动模块

#card #1

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

#ISA声卡还需要指定IRQ/IO地址,因为市场上已经很少,在此不再探讨。有需要可以查

#看此软件的相关说明。



六:系统测试和声卡设备调整。

1:编辑好/etc/modules.conf文件后,需要使用系统程序测试模块是否可以正常加载。

输入命令:

“modprobe snd-card-ymfpci”

系统直接进入提示符状态,表明加载正常。不过,如果你搞不清到底加载什么模块,可以去/lib/modules/2.2.13/misc下面去查看,可加载声卡模块都在里面。凭借模块名字就可以知道自己需要什么文件了。

2:调节音量。

输入命令:

“amixer”

命令提示如下:



Capabilities: volume Channels: Front-Left Front-Right Limits: min = 0, max = 16383 Front-Left: 0 [0%] [on] [---] Front-Right: 0 [0%] [on] [---] Group ‘ADC Record‘,0 Capabilities: volume Channels: Front-Left Front-Right Limits: min = 0, max = 16383 Front-Left: 0 [0%] [on] [---] Front-Right: 0 [0%] [on] [---] Group ‘Capture Volume‘,0 Capabilities: volume Channels: Front-Left Front-Right Limits: min = 0, max = 16383 Front-Left: 0 [0%] [on] [---] Front-Right: 0 [0%] [on] [---] Group ‘Input Gain‘,0 Capabilities: volume mute jointly-mute Channels: Front-Left Front-Right Limits: min = 0, max = 15 Front-Left: 0 [0%] [mute] [---] Front-Right: 0 [0%] [mute] [---] Group ‘Master Mono‘,0 Capabilities: volume mute capture exclusive-capture Capture exclusive group: 1 Channels: Front-Left Front-Right Limits: min = 0, max = 31 Front-Left: 0 [0%] [mute] [---] Front-Right: 0 [0%] [mute] [---] Group ‘Master‘,0 Capabilities: volume mute jointly-mute capture exclusive-capture Capture exclusive group: 1 Channels: Front-Left Front-Right Limits: min = 0, max = 31 Front-Left: 0 [0%] [mute] [---] Front-Right: 0 [0%] [mute] [---] Group ‘Aux‘,0 Capabilities: volume mute jointly-mute capture exclusive-capture Capture exclusive group: 1 Channels: Front-Left Front-Right Limits: min = 0, max = 31 Front-Left: 0 [0%] [mute] [---] Front-Right: 0 [0%] [mute] [---] Group ‘Video‘,0 Capabilities: volume mute jointly-mute capture exclusive-capture Capture exclusive group: 1 Channels: Front-Left Front-Right Limits: min = 0, max = 31 Front-Left: 0 [0%] [mute] [---] Front-Right: 0 [0%] [mute] [---] Group ‘CD‘,0 Capabilities: volume mute jointly-mute capture exclusive-capture Capture exclusive group: 1 Channels: Front-Left Front-Right Limits: min = 0, max = 31 Front-Left: 0 [0%] [mute] [---] Front-Right: 0 [0%] [mute] [---] Group ‘Line‘,0 Capabilities: volume mute jointly-mute capture exclusive-capture Capture exclusive group: 1 Channels: Front-Left Front-Right Limits: min = 0, max = 31 Front-Left: 0 [0%] [mute] [---] Front-Right: 0 [0%] [mute] [---] Group ‘MIC‘,0 Capabilities: volume mute capture exclusive-capture Capture exclusive group: 1 Channels: Front-Left Front-Right Limits: min = 0, max = 31 Front-Left: 0 [0%] [mute] [capture] Front-Right: 0 [0%] [mute] [capture] Group ‘Phone‘,0 Capabilities: volume mute capture exclusive-capture Capture exclusive group: 1 Channels: Front-Left Front-Right Limits: min = 0, max = 31 Front-Left: 0 [0%] [mute] [---] Front-Right: 0 [0%] [mute] [---] Group ‘PC Speaker‘,0 Capabilities: volume mute Channels: Front-Left Front-Right Limits: min = 0, max = 15 Front-Left: 0 [0%] [mute] [---] Front-Right: 0 [0%] [mute] [---] Group ‘PCM‘,0 Capabilities: volume mute jointly-mute Channels: Front-Left Front-Right Limits: min = 0, max = 31 Front-Left: 0 [0%] [mute] [---] Front-Right: 0 [0%] [mute] [---]



  这表明声卡驱动默认状态是静音,所以需要使用程序调节合适的音量。

  本来使用“amixer”命令可以手工指定参数,进行音量调整。不过,为了不至于把跟随此文一直到现在,大脑可能一直糊里糊涂的朋友们吓跑,可以尝试使用下面的办法,非常方便。

输入命令:

“alsamixer”

你是否看到一个图形界面?按F1可以察看帮助信息。注意每个竖条都代表你的声卡特性。使用 上下左右 光标键,可以很容易的调节每种特性的音量。上下光标调数量,比如,我把他们都调到了“74”,左右光标切换竖条。调好之后,按“ESC”键退出。

再输入命令:

“amixer“ “Group ‘SPDIF Record‘,0 Capabilities: volume Channels: Front-Left Front-Right Limits: min = 0, max = 16383 Front-Left: 12136 [74%] [on] [---] Front-Right: 12136 [74%] [on] [---] Group ‘ADC Record‘,0 Capabilities: volume Channels: Front-Left Front-Right Limits: min = 0, max = 16383 Front-Left: 12136 [74%] [on] [---] Front-Right: 12136 [74%] [on] [---] Group ‘Capture Volume‘,0 Capabilities: volume Channels: Front-Left Front-Right Limits: min = 0, max = 16383 Front-Left: 12136 [74%] [on] [---] Front-Right: 12136 [74%] [on] [---] Group ‘Input Gain‘,0 Capabilities: volume mute jointly-mute Channels: Front-Left Front-Right Limits: min = 0, max = 15 Front-Left: 11 [73%] [mute] [---] Front-Right: 11 [73%] [mute] [---] Group ‘Master Mono‘,0 Capabilities: volume mute capture exclusive-capture Capture exclusive group: 1 Channels: Front-Left Front-Right Limits: min = 0, max = 31 Front-Left: 23 [74%] [mute] [---] Front-Right: 23 [74%] [mute] [---] Group ‘Master‘,0 Capabilities: volume mute jointly-mute capture exclusive-capture Capture exclusive group: 1 Channels: Front-Left Front-Right Limits: min = 0, max = 31 Front-Left: 23 [74%] [mute] [---] Front-Right: 23 [74%] [mute] [---] Group ‘Aux‘,0 Capabilities: volume mute jointly-mute capture exclusive-capture Capture exclusive group: 1 Channels: Front-Left Front-Right Limits: min = 0, max = 31 Front-Left: 23 [74%] [mute] [---] Front-Right: 23 [74%] [mute] [---] Group ‘Video‘,0 Capabilities: volume mute jointly-mute capture exclusive-capture Capture exclusive group: 1 Channels: Front-Left Front-Right Limits: min = 0, max = 31 Front-Left: 23 [74%] [mute] [---] Front-Right: 23 [74%] [mute] [---] Group ‘CD‘,0 Capabilities: volume mute jointly-mute capture exclusive-capture Capture exclusive group: 1 Channels: Front-Left Front-Right Limits: min = 0, max = 31 Front-Left: 23 [74%] [mute] [---] Front-Right: 23 [74%] [mute] [---] Group ‘Line‘,0 Capabilities: volume mute jointly-mute capture exclusive-capture Capture exclusive group: 1 Channels: Front-Left Front-Right Limits: min = 0, max = 31 Front-Left: 23 [74%] [mute] [---] Front-Right: 23 [74%] [mute] [---] Group ‘MIC‘,0 Capabilities: volume mute capture exclusive-capture Capture exclusive group: 1 Channels: Front-Left Front-Right Limits: min = 0, max = 31 Front-Left: 23 [74%] [mute] [capture] Front-Right: 23 [74%] [mute] [capture] Group ‘Phone‘,0 Capabilities: volume mute capture exclusive-capture Capture exclusive group: 1 Channels: Front-Left Front-Right Limits: min = 0, max = 31 Front-Left: 23 [74%] [mute] [---] Front-Right: 23 [74%] [mute] [---] Group ‘PC Speaker‘,0 Capabilities: volume mute Channels: Front-Left Front-Right Limits: min = 0, max = 15 Front-Left: 11 [73%] [mute] [---] Front-Right: 11 [73%] [mute] [---] Group ‘PCM‘,0 Capabilities: volume mute jointly-mute Channels: Front-Left Front-Right Limits: min = 0, max = 31 Front-Left: 23 [74%] [mute] [---] Front-Right: 23 [74%] [mute] [---]”

你会发现你的调整已经起作用了。

3:存储配置参数。

因为刚才的调整不是永久性的,下次重新启动时,又成了静音状态。所以,需要把参数存储起来。

输入命令:



alsactl store



程序自动的建立了配置文件---“/etc/asound.conf“。如果对修改后的配置不满意,可以使用:

“alsactl restore”恢复。

七:聆听自由的声音。

到此,所有的安装过程全部结束了。由于每个人的系统配置各异,所以作者无法预料到所有的情况。有任何问题请平心静气,仔细研究、思考。解决不了欢迎上网讨论。要知道,这样你的Linux使用水平会迅速提高。一步到位的安装虽然简单,但是少了DIY的乐趣。

感谢你有如此耐心,现在启动X Window,打开MP3播放器,尽情享受美妙音乐的乐趣吧!

作者:TopMan

2000/8/31

附录:支持的声卡列表

1:声卡列表:

==========================================================

声卡类型: AMD InterWave 声卡类型: Gravis UltraSound Plug & Play 声卡类型: Dynasonic 3-D 声卡类型: STB Sound Rage 32 声卡类型: UltraSound 32-Pro (STB) 声卡类型: MED3210 声卡类型: Gravis UltraSound MAX 声卡类型: Gravis UltraSound Extreme 声卡类型: Gravis UltraSound Classic/ACE 声卡类型: ESS AudioDrive ESx688 声卡类型: SoundBlaster 1.0/2.0/Pro 声卡类型: SoundBlaster 16/AWE 声卡类型: Yamaha OPL3-SA2/SA3 声卡类型: Yamaha PCI YMF72x, YMF74x & YMF75x 声卡类型: OAK Mozart 声卡类型: S3 SonicVibes PCI 声卡类型: Schubert 32 PCI (PINE) 声卡类型: Ensoniq AudioPCI (ES1370,ES1371) 声卡类型: SoundBlaster PCI 64 声卡类型: SoundBlaster PCI 128 声卡类型: Cirrus Logic / Crystal Semiconductors CS4232/CS4232A 声卡类型: Cirrus Logic / Crystal Semiconductors CS4235/CS4236/CS4236B/CS4237B/CS4238B/CS4239 声卡类型: Turtle Beach Malibu 声卡类型: Cirrus Logic / Crystal Semiconductors CS4610/CS4612/CS4615/CS4280 声卡类型: ESS Solo-1 ES1938 声卡类型: ESS ES18XX 声卡类型: OPTi 82C9xx 声卡类型: Audio 16 Pro EPC-SOUN9301 (82C930 based) 声卡类型: ExpertColor MED-3931 v2.0 (82C931 based) 声卡类型: ExpertMedia Sound 16 MED-1600 (82C928 based - AD1848) 声卡类型: Mozart S601206-G (OTI601 based - CS4231) 声卡类型: Sound Player S-928 (82C928 based - AD1848) 声卡类型: Trident 4DWave DX/NX 声卡类型: Best Union Miss Melody 4DWave PCI 声卡类型: HIS 4DWave PCI 声卡类型: Warpspeed ONSpeed 4DWave PCI 声卡类型: AzTech PCI 64-Q3D 声卡类型: Addonics SV 750 声卡类型: CHIC True Sound 4Dwave 声卡类型: Shark Predator4D-PCI 声卡类型: Jaton SonicWave 4D 声卡类型: Hoontech SoundTrack Digital 4DWave NX 声卡类型: ForteMedia FM801 声卡类型: DT-0398 声卡类型: SGI Indy (HAL2) 声卡类型: Turtle Beach WaveFront 声卡类型: Tropez Plus (Tropez+) 声卡类型: Tropez 声卡类型: Maui (models with CS4232; others use OPTi 16 which is not handled) 声卡类型: C-Media CMI8330 声卡类型: C-Media CMI8338/8738 声卡类型: Avance Logic ALS100/ALS120 声卡类型: Diamond Technologies DT-0197H 声卡类型: Aztech Sound Galaxy 声卡类型: MOTU MidiTimePiece AV multiport MIDI interface 声卡类型: EMU10K1 声卡类型: Sound Blaster Live! 声卡类型: Sound Blaster PCI 512 声卡类型: E-mu APS 声卡类型: RME Digi9652 (Hammerfall, Hammerfall light) 声卡类型: Intel i810/i820/i830/i840/MX440 声卡类型: ESS Maestro 1/2/2E 声卡类型: VIA 82C686A (South Bridge)

如果你的声卡不再此列,请下载最新版本的软件。


原作者:不详
来源:ENET
...全文
1947 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
hem 2001-06-11
  • 打赏
  • 举报
回复
怎么没人理 ?
hem 2001-06-11
  • 打赏
  • 举报
回复
给分。
seasideboy 2001-06-10
  • 打赏
  • 举报
回复
没人捧场?我来,呵呵,鼓掌
hem 2001-05-24
  • 打赏
  • 举报
回复
Linux下声卡通
推荐:weed 发表日期:2001年4月19日 阅读次数:380
--------------------------------------------------------------------------------

一些Linux用户经常询问这样的问题:Linux能兼容XXX卡么?其实,Linux是一个开放性的系统,只要通过Linux爱好者们的努力,Linux可以兼容任何硬件。

  先来说说声卡。首先要知道声卡的类型,或者是某种声卡兼容的。如果内核不能把这种声卡检测出来,那么就需要安装这种声卡的驱动模块,来安装声卡。

  例如,市面上常见的声卡Creative Vibra 128使用的驱动模块是es1371,Creative PCI 128使用的模块是es1370等等。

  redhatlinux中用sndconfig来设置声卡,如果没有某个模块,就需要重新编译内核(编译最新发布的linux内核),如果还不行,只好用ALSA 音效驱动程式。

  ALSA 音效驱动程式原本是写来取代 Gravis UltraSound 卡的Linux核心驱动程式的。当实证这取代得很成功,它和OSS/Free 及OSS/Linux音效驱动程式相容(核心的驱动程式),但它有比OSS驱动程式更好的本身介面。

  ALSA音效驱动程式可在http://www.alsa-project.org/找到。到发稿时最新版本为0.5.9d ALSA 音效驱动程式是建为模组的。下面是ALSA支持的声卡类型。

  ALSA Supported SoundCards

  Advanced Linux Sound Architecture - Supported SoundCards

  ==========================================================

  ID: SoundCard chipset/type

  SC: SoundCard name

  IF: Supported interfaces (MIXER,PCM,SYNTH,SYNTH_MIDI,SEQ,OPL,MIDI,EMUL,HWDEP)

  MA: Maintainer

  CO: Coder

  This file is maintained by Jaroslav Kysela .

  Note: OPL -> Raw (native) OPL

  Note: MIDI -> external MIDI port

  Note: EMUL -> MIDI emulation

  Note: SYNTH -> yeah, well ?

  Note: SYNTH_MIDI -> internal synth that handles MIDI data

  Note: SEQ -> kernel client for ALSA sequencer

  Note: HWDEP -> various hardware-dependent interfaces/devices

  =====

  ID: AMD InterWave

  SC: Gravis UltraSound Plug & Play

  SC: Dynasonic 3-D

  SC: STB Sound Rage 32

  SC: UltraSound 32-Pro (STB)

  SC: MED3210

  IF: MIXER,PCM,MIDI,SYNTH

  MA: Jaroslav Kysela

  ID: Gravis UltraSound MAX

  IF: MIXER,PCM,MIDI,SYNTH

  MA: Jaroslav Kysela

  ID: Gravis UltraSound Extreme

  IF: MIXER,PCM,MIDI,SYNTH

  MA: Jaroslav Kysela

  ID: Gravis UltraSound Classic/ACE

  IF: MIXER,PCM,SYNTH

  MA: Jaroslav Kysela

  ID: ESS AudioDrive ESx688

  IF: MIXER,PCM,MIDI(1688)

  MA: Jaroslav Kysela

  ID: SoundBlaster 1.0/2.0/Pro

  IF: MIXER (Pro only),PCM,MIDI

  CO: Jaroslav Kysela

  MA: Chris Butler

  ID: SoundBlaster 16/AWE

  IF: MIXER,PCM,MIDI

  MA: Jaroslav Kysela

  ID: Yamaha OPL3-SA2/SA3

  IF: MIXER,PCM,MIDI

  MA: Jaroslav Kysela

  ID: OAK Mozart

  IF: MIXER,PCM

  CO: Jaroslav Kysela

  MA: ???

  ID: S3 SonicVibes PCI

  SC: Schubert 32 PCI (PINE)

  IF: MIXER,PCM,MIDI

  MA: Jaroslav Kysela

  ID: Ensoniq AudioPCI (ES1370,ES1371)

  SC: SoundBlaster PCI 64

  SC: SoundBlaster PCI 128

  IF: MIXER,PCM,MIDI

  MA: Jaroslav Kysela

  ID: Cirrus Logic / Crystal Semiconductors CS4232/CS4232A

  IF: MIXER,PCM,MIDI

  MA: Jaroslav Kysela

  ID: Cirrus Logic / Crystal Semiconductors CS4235/CS4236/CS4236B/CS4237B/CS4238B/CS4239

  SC: Turtle Beach Malibu

  IF: MIXER,PCM,MIDI

  MA: Jaroslav Kysela

  ID: Cirrus Logic / Crystal Semiconductors CS4610/CS4612/CS4615/CS4280

  IF: MIXER,PCM

  MA: Jaroslav Kysela

  ID: ESS Solo-1 ES1938

  IF: MIXER,PCM

  MA: Jaromir Koutek

  ID: ESS ES18XX

  IF: MIXER,PCM,MIDI

  MA: Abramo Bagnara

  ID: OPTi 82C9xx

  SC: Audio 16 Pro EPC-SOUN9301 (82C930 based)

  SC: ExpertColor MED-3931 v2.0 (82C931 based)

  SC: ExpertMedia Sound 16 MED-1600 (82C928 based - AD1848)

  SC: Mozart S601206-G (OTI601 based - CS4231)

  SC: Sound Player S-928 (82C928 based - AD1848)

  IF: MIXER,PCM,OPL,MIDI

  MA: Massimo Piccioni

  ID: Trident 4DWave DX/NX

  SC: Best Union Miss Melody 4DWave PCI

  SC: HIS 4DWave PCI

  SC: Warpspeed ONSpeed 4DWave PCI

  SC: AzTech PCI 64-Q3D

  SC: Addonics SV 750

  SC: CHIC True Sound 4Dwave

  SC: Shark Predator4D-PCI

  SC: Jaton SonicWave 4D

  SC: Hoontech SoundTrack Digital 4DWave NX

  IF: MIXER,PCM,MIDI

  MA: Jaroslav Kysela

  ID: ForteMedia FM801

  SC: DT-0398

  IF: MIXER,PCM,MIDI

  MA: perex@suse.cz

  ID: SGI Indy (HAL2)

  IF: PCM

  MA: Ulf Carlsson

  ID: Turtle Beach WaveFront

  SC: Tropez Plus (Tropez+)

  SC: Tropez

  SC: Maui (models with CS4232; others use OPTi 16 which is not handled)

  IF: MIXER,PCM,MIDI,OPL,SYNTH_MIDI,HWDEP

  CO: pbd@op.net

  MA: pbd@op.net

  ID: C-Media CMI8330

  IF: MIXER,PCM

  MA: George Talusan

  ID: C-Media CMI8338/8738

  IF: MIXER,PCM,MIDI

  MA: Takashi Iwai

  ID: Avance Logic ALS100/ALS120

  IF: MIXER,PCM,MIDI

  MA: Massimo Piccioni

  ID: Diamond Technologies DT-0197H

  IF: MIXER,PCM,MIDI

  MA: Massimo Piccioni

  ID: Aztech Sound Galaxy

  IF: MIXER,PCM,MIDI

  MA: Christopher Butler

  ID: MOTU MidiTimePiece AV multiport MIDI interface

  IF: MIDI

  MA: Michael T。Mayers

  ID: EMU10K1

  SC: Sound Blaster Live!

  SC: Sound Blaster PCI 512

  SC: E-mu APS

  IF: MIXER,PCM,MIDI,SYNTH_MIDI

  MA: Jaroslav Kysela

  ID: RME Digi9652 (Hammerfall, Hammerfall light)

  IF: PCM

  MA: Paul Barton-Davis

  ID: Intel i810/i820/i830/i840/MX440

  IF: MIXER,PCM

  MA: Jaroslav Kysela

  ID: ESS Maestro 1/2/2E

  IF: MIXER,PCM

  MA: Matze Braun

  ID: VIA 82C686A (South Bridge)

  IF: MIXER,PCM,MIDI

  MA: Jaroslav Kysela

  请注意如果您想使用 ALSA 驱动程式, 那么您不应该先载入任何其它音效驱动程式。如果您的核心中内含音效驱动程式, 那么有必要重编译核心。如果您正在使用旧的 sound.o 模组, 您必须解除它。如果您使用 kerneld, 这可能就是要您删去 /lib/modules/<核心版本>/misc 目录下的 sound.o。新的 RedHat 系统的音效驱动程式组织方式不太一样, 要载入好几个模组, 这种情况您需要解除全部的模组。

  2.2 版核心对音效则采用了新的方式。您应该要包含音效的支援! 是的, 没有说错, 您在核心中加入了对音效的支援, 但没有包含任何音效卡的部份。然後重编译及安装核心, 接著编译 ALSA驱动程式。

  编译 ALSA驱动程式的步骤:

  tar zxvf alsa-driver-0.3.5.9d.tar.gz

  tar zxvf alsa-lib-0.3.5.9d.tar.gz

  tar zxvf alsa-utils-0.3.5.9d.tar.gz

  cd alsa-driver-0.3.5.9d

  ./configure

  make

  make install

  cd ../alas-lib-0.3.5.9d

  ./configure

  make

  make install

  cd ../alas-utils-0.3.5.9d

  ./configure

  make

  make install

  驱动程式目录下有个命令稿(script)可以把 ALSA 的音效设备档安装进 /dev 目录。

  在驱动程式目录下打入./snddevices

  有两种使用 ALSA 音效模组的方法:

  A.用 modprobe 安插驱动程式

  如果您有 PnP 音效卡, 您首先要设定正确的(或至少是已知的) IO/IRQ/DMA.

  举两个例子:

  Gravis UltraSound (GUS) 及相容卡:

  /sbin/modprobe snd-gusclassic

  对完全 16 位元的 SoundBlaster 卡 (SoundBlaster 16 (PnP), SoundBlaster AWE 32 (PnP), Sound BlasterAWE 64 (PnP):

  /sbin/modprobe snd-sb16

  B.使用 kerneld 来载入

  kerneld 是个在需要时插入模组, 并在不再使用时卸除它们的服务程式(daemon).

  编辑 /etc/conf.modules

  执行 modprobe snd-card, 其中 snd-card 是您的音效卡名称。

  这是 Gravis UltraSound PnP 音效卡的 /etc/conf.modules:

  alias char-major-14 snd

  alias snd-minor-oss-0 snd-interwave

  alias snd-minor-oss-3 snd-pcm1-oss

  alias snd-minor-oss-4 snd-pcm1-oss

  alias snd-minor-oss-5 snd-pcm1-oss

  alias snd-minor-oss-12 snd-pcm1-oss

  alias snd-card-0 snd-interwave

  options snd snd_major=14 snd_cards_limit=1

  options snd-interwave snd_index=1 snd_id="guspnp" snd_port=0x220 snd_irq=5

  snd_dma1=5 snd_dma2=6


原作者:hubertzou 
来源:LinuxAid 专业技术服务
hem 2001-05-24
  • 打赏
  • 举报
回复
在Linux下安装声卡
推荐:Einstein 发表日期:2000年11月19日 阅读次数:245
--------------------------------------------------------------------------------

 就Linux系统对硬件设备的支持特性而言,对声卡的支持是很糟糕的。不过现在好了,有两种驱动程序可以弥补Linux系统的不足。一种是OSS(开放声音系统),一种是ALSA(先进Linux声音架构)。OSS是一个商业声卡驱动程序,需要花钱购买,否则每次启动后,你只可以免费使用240分钟;ALSA是自由软件,可以免费使用。
  一、安装OSS声卡驱动程序
  1.从http://www.opensound.com/下载OSS驱动程序
2.启动Linux,把下载下来的osslinux393q-2217-UP.tar.gz拷到一个临时目录中,如:
  cp osslinux393q-2217-UP.tar.gz /tmp/
  cd /tmp
  tar zxvf osslinux392v-glibc-2212-UP.tar.gz
  此时文件已经解开,你可以看到在当前目录下有四个文件:INSTALL、LICENSE、oss-install和oss.pkg文件,其中INSTALL是安装帮助文件,如果你是第一次安装一定要好好看一看。
  3.配置
  以root用户身份运行oss-install:
  ./oss-install
  如果出现了“No such file or directory”的错误信息,那是因为你下载的OSS驱动程序的版本和你用的Linux不匹配,可以重新到上述站点,下载相应的驱动程序就可以了。
  这时候一般会提示:你的Linux以模块的形式加载了声卡驱动程序,要不要安装程序自动将它去掉?选择去掉就可以了。
  接下来就是处理过程、协议及一大堆东西,接受协议安装,使用默认安装路径即可(/usr/lib/oss)。oss一般可以自动检测出大部分声卡,你可以看看结果是不是和你的声卡相符,如果相符,直接在菜单中选择“Save changes and Exit..”即可。对于那些不能直接探测到的声卡,你就只有用手工方法选择了。如对Yamaha OPL3-SAX (YMF715/YMF719) chip 可以选择:“Generic Yamaha OPL3-SAx (YMF715/YMF719) non-PnP”driver。
  4.打开/关闭声卡
  在默认的安装目录/usr/local/bin里有一个soundon命令,它可以用来打开oss驱动,同样的你也可以用soundoff命令关闭oss驱动。
  5.疑难解决
  有时也可能出现这样的情况,你的声卡检测到了,而且安装过程也好像一切正常,但是声卡就是不能正常工作。不要急,OSS还有可以让你手工调节设置参数的地方,其实,在“Save changes and Exit”的同一个窗口中,还有一个选项“Manual Configuration”,它就是让你手工调整设置参数的,你可以在这里设置声卡的IO、DMA等参数。
  二、安装ALSA声卡驱动程序
  1.到http://www.heihei.com/下载下面四个软件包:
  alsa-driver-0.5.9.tar.bz2
  alsaconf-0.4.3b.tar.gz
  alsa-lib-0.5.9.tar.bz2
  alsa-utils-0.5.9.tar.bz2
  2.先安装alsa-driver-0.5.9.tar.bz2这个文件:
  (1)cp alsa-driver-0.5.9.tar.bz2 /tmp
  将alsa-driver-0.5.9.tar.bz2 拷到/tmp目录下。
  (2)bunzip2 alsa-driver-0.5.9.tar.bz2
  解压缩这个文件,会在/tmp目录下生成一个文件叫做alsa-driver-0.5.9.tar。
  (3)tar xvf alsa-driver-0.5.9.tar
  将会在/tmp目录下产生一个子目录叫做alsa-driver-0.5.9,alsa的所有文件就存放在这个目录下。
  (4)cd alsa-driver-0.5.9
  进入alsa的驱动程序所存放的目录,准备配置和编译它。这时你可以看一下目录下的INSTALL文件来了解安装的步骤和注意事项。
  (5)依次运行下面三个命令:
  ./configure
  make install
  ./snddevices
  3.编辑/etc/ modules.conf文件
  这个文件的配置虽然比较麻烦,但用alsaconf-0.4.3b.tar.gz也可以配好它,运行命令:
   (1)cp alsaconf-0.4.3b.tar.gz /tmp
  将alsaconf-0.4.3b.tar.gz 拷到/tmp目录下。
  (2)tar zxvf alsaconf-0.4.3b.tar.gz
  解压缩这个文件,会在/tmp目录下生成一个子目录叫做alsaconf-0.4.3b。
  (3)./alsaconf
  会出现一个窗口叫你选择声卡,像SoundBlaster及ESS1868、S3_SonicVibes_PCI、Ensoniq_AudioPCI_ES1370 1371等,很多目前的kernel还不支持的声卡它都可以支持了。
  选好声卡之后系统会问你一些问题,都回答OK,然后会回到第一个画面问你要不要继续设第二张声卡,选“No_more_cards”退出即可。完成这个步骤之后,/etc/modules.conf这个文件就基本上自动配置好了,重新启动电脑后声卡就可以发声了。
  4.如果还不行,那么你就还需要安装alsa-lib和alsa-utils,安装方法和alsa-driver一样,注意要先安装alsa-lib,再安装alsa-utils。将文件拷到/tmp目录,解压缩,然后运行命令make和make install,具体请参照上面alsa-driver的安装步骤。
  安装后到alsa-utils(解开alsa-utils-0.5.9.tar.bz2会产生该目录)目录下的alsamixer子目录执行
  ./alsamixer
  好了,你的声卡应该能发声了。



原作者:不详
来源:CPCW
hem 2001-05-24
  • 打赏
  • 举报
回复
快速安装OOS(开放的声卡系统)指南
推荐:凌心一剑 发表日期:2001年4月10日 阅读次数:174
--------------------------------------------------------------------------------

Quick installation instructions for Open Sound System
=====================================================
快速安装OOS(开放的声卡系统)指南

IMPORTANT! Do not remove any OSS files if you are upgrading from an earlier Open Sound System version. The upgrade procedure requires that all files from the previous Open Sound System installation are in their place.
重要提示:如果你是从更早版本的OOS中升级,一定不要删除任何一个文件。因为升级时需要这些文件呆在原位上。

You should have three files in this directory:
你可以在这个目录下看到三个文件:

INSTALL (this file)
INSTALL:安装指南,就是这个文件!

oss-install The installation program
oss-install:安装主文件

oss.pkg A data file containing the software to be installed.
oss.pkg:OSS包含的数据文件

To install the OSS software you should perform the following steps:
安装OSS软件你需完成以下几个步骤:

1) OSS cant be installed if there is a sound driver already loaded. The easiest way to verify this is to execute cat /dev/sndstat. If it prints out information about sound drivers, it means you have some driver installed.
1)如果在你的系统中已经装载了声卡驱动程序,OSS将不能正常安装。你可以执行 cat /dev/sndstat命令检查你的系统中是否已经安装了声卡驱动程序。如果这个命令打印出一些关于声卡的驱动程序信息,就意味着你安装了声卡驱动程序。

a) If you have earlier version of Open Sound System installed you should unload it using "soundoff" before proceeding. However you _DO NOT_ need to remove the existing driver files since the installation automaticly updates (only) the required parts.
a)如果你已经安装了早期版本的OSS,你可以使用soundoff 将OSS从你正在运行的系统中unload掉。但你不能将OSS中的已存在的驱动程序文件面面删掉!因为在升级时,需要这些文件。

b) There is a sound driver compiled in the kernel (not as a loadable module). In this case you have to reconfigure and recompile the kernel so that there is no sound driver included. Dont forget to boot with the newly compiled kernel before proceeding.
This only affects Linux,FreeBSD, SCO OpenServer, UnixWare and BSD/OS versions of OSS.
b)如果你有一个声卡驱动程序编译在内核中,你就必需重新配置再重新编译内核以确保不包含声卡驱动程序。做完后别忘了用新的内核重新引导系统。这一点针对的是Linux,FreeBSD, SCO OpenServer, UnixWare and BSD/OS版本的OSS软件。

NOTE FOR LINUX USERS:
In the event that your sound driver is a loadable kernel module,
you should unload the sound module before proceeding with the OSS installation.
Execute "rmmod sound" and ensure that the module is not reinstalled during next boot or by kerneld.
The easiest way to do this is to remove all "sound.o" files from the subdirectories of /lib/modules.
LINUX用户请注意:
如果在你的系统中,内核已装载了驱动程序,你必须unload掉这个声卡模块才能安装OSS,执行rmmod sound,然后确认这个模块不会在重新启动时被装入。一种简单的方法就是直接移去/lib/modules中所有sound.o文件。

2) Execute the installation program (./oss-install). This must
be done when logged on as root (dont use "su"). The installation
procedure is described below.
2)执行安装程序:./oss-install。要注意的是:执行这个命令必须以root登录,而不能是用su命令进入root!具体安装如下:

If you get error "./oss-install: No such file or directory" please verify that you are trying to install proper OSS/Linux installation package. There are different packages available for both the "traditional" libc/libc5 and the new
glibc/libc6 version (for example RedHat 5.x, SuSE 6.x and later).
如果你在安装的过程中遇到错误:"./oss-install:No such file or directory",请检查你是否选择了正确的安装包。因为有供不同libary使用的版本。

In Linux its possible that oss-install complains something like
"Error opening terminal: linux".
在LINUX中,可能会出现oss-install提示象:"Error opening terminal:linux"的错误。

This may happen because there are two different versions of the curses library.
这种情况的发展是原因在你的系统中有两个版本的library。

You may also try setting the TERM environment variable to vt100.
你也可以尝试有vt100的终端进行设置。

3) After installation is complete, you can start the driver by
executing "soundon".
To stop the driver use "soundoff". These files are found in the directory where OSS is installed and in some systems they can be found in /usr/local/bin.
When you need to change configuration of the driver, you an do it by executing "soundconf" in the directory
where you installed OSS (usually /usr/lib/oss).
3)当安装完成时,你可以执行soundon来启动OSS声卡驱动程序,用soundoff来中止OSS声卡驱动程序。这些文件可以在OSS安装后的目录或/usr/local/bin目录下找到。当你需要改变这个驱动程序的配置时,你可以执行soundconf,这个文件也在你安装OSS的目录下(通常是/usr/lib/oss)。

Selecting the right OSS/Linux installation package (Linux only)
---------------------------------------------------------------
正确地选择OSS/Linux安装包(仅限Linux)

Due to differences between kernel versions there are 8 different
OSS/Linux installation packages downloadable from our web site.4 of them are for systems using the traditional libc and the last 4
ones are for new glibc/libc6 library (RedHat 5.x and later, SuSE 6.x
and later and probably all Linux 2.2.x based distributiins).
对应不同的内核,OSS共有8种不同的安装包以供下载。其中有四种是用于传统的library,其余四种是用于新的glibc/libc6(RedHat 5.x以后版本,SuSE 6.x以后版本以及绝大部分基于linux 2.2.x核心的发行版本。

Linux 2.0.x
This is the "normal" version which should be used together with all kernels between 2.0.0 and 2.0.36 compiled with uniprocessor support(the default case).
Linux 2.0.x:标准版本,支持Linux 2.0.0-2.0.36内核(单处理器)。

Linux 2.0.x (SMP)
This package is for Linux 2.0.0 to 2.0.36 kernels compiled with SMP support (SMP=1 uncommented in the kernel Makefile). Use this package only if you have compiled the kernel yourself with SMP support (all Linux distributions install the "normal" (non SMP) kernel by default).
Linux 2.0.x(SMP):这个包支持Linux 2.0.0-2.0.36内核(多处理器)。

Linux 2.2.x (SMP)
Linux 2.2.x (UP)
There are two different packages for the latest Linux 2.2.x
kernels. You should select the package depending on the way how the kernel is compiled (this has nothing to do with the number of CPUs on your machine).
Linux 2.2.x(SMP)、Linux 2.2.x(UP):这是两个基于Linux 2.2.x核心的不同安装包。你可以根据核心如何编译而选择(这里并不关心你的机器上有几个CPU)。

For example:
例如:

"2.2.0 #2 SMP ..." means that you should select the SMP version while
"2.2.0 #2 ..." means that you should select the UP version.
"2.2.0 #2 SMP ..."意思是你选择了SMP版本。
"2.2.0 #2 ..."则表示你选择了UP版本。

Steps performed by the installation program (oss-install)
------------------------------------------------------------
安装程序oss-install步骤:

When executed oss-install performs the necessary steps required to install
Open Sound System. The steps are:
当你执行oss-install后,须要完成以下步骤:

0) Initial compatibility checks are performed. You will be informed if
you should download another installation package of OSS.
0)首先做兼容性测试。如果你下载了不对的OSS安装包,你将得到它的提示。

1) The program shows the licence agreement. After reading the
agreement, accept it by activating the [Accept] button below the text area.
You can use the arrow up and arrow down keys to scroll the text. Use TAB to
jump between the scroll area and the buttons below it. Press ENTER to
activate the selected (highted lighted) choice.
1)检查后,安装程序将显示安装许可协议。当你读了协议后,如果你同意,则按[Accept]按钮。你可以使用光标键滚动文本区。按TAB键在按钮与文本区中切换。按回车确认。

2) Next the program views release notes of Open Sound System (Readme). After
reading it activate the [Ok] button.
2)接受协议后,程序将显示OOS的版本信息及帮助信息。你读过后按OK按钮继续。

3) The third step is selecting the directory where the Open Sound System
software is installed. The program offers several alternatives but
/usr/lib/oss is the recommended choice.
3)第三步则是为OSS选择安装目录。OSS提供了几个选择,默认是/usr/lib/oss

4) After the above interactive steps the installation program extracts the
software files to the selected directory. It also verifies that the driver
version is compatible with your current kernel version by trying to
load the modules.
4)完成了以上步骤,安装程序将解压软件文件到所选择的目录。并且还检验这个驱动程序是否与你的内核兼容,然后尝试装载这个模块。

NOTE FOR LINUX USERS:
Linux用户注意:

On Linux, if there are some kind of kernel version incompatibilities, the
installation program attempts to resolve them by recompiling the "sndshield"
module. This step succeeds only in systems that meet criterias listed in Readme.
If remompilation fails, you should download new driver version from
http://www.4front-tech.com/linux.html.
在Linux中,如果有些内核版本是不兼容OSS的安装程序将试图通过重新编译"sndshield"模块来解决这个问题。这一步只有当你的系统能使用标准版才会取得成功。如果重新编译失败,你就必须从http://www.4front-tech.com/linux.html下载一个新的版本。

5) Finally the configuration program is invoked automaticly (see below).
最后配置程序以便今后自动调用!

Running the configuration program (soundconf)
---------------------------------------------
运行配置程序soundconf

The configuration program is started automaticly after software installation
is complete. You can run it again by executing "soundconf" command in the
directory where Open Sound System was installed (/usr/lib/oss in most cases).
软件安装完成后,将自动启动配置程序。你今后也可以在OOS安装的目录下执行soundconf命令再次启动配置程序。

When running the configuration for first time, it performs all the necessary
auto-detection steps. You will first be presented with a screen that asks you
if you want to automatically detect Plug-and-Play (PnP) sound cards. Its
safe to proceed to select the [Detect] option by pressing the key and
then pressing the key. The next screen prompts you to select if you
want to detect Non-Plug-and-Play (Non PnP) cards. You should proceed with
caution since the sound drivers will probe all known sound cards and if
there is an IRQ or I/O address conflict, the system can lock up. However,
if youre reasonably sure that there are no hardware conflicts with your
adapters, you can proceed to select the [Detect] option. If you want to
skip this process, select the [Cancel] button by hightlighting the option
on the screen using the key and then pressing .
当你第一次运行配置程序时,将自动完成所有必要的检测工作。首先,将出现一个屏幕提示你是否需要自动检测PNP(即插即用)声卡。建议在按下键时先选择[Detect]选项。然后,将出现一个屏幕提示你是否需要检测Non PNP(非即插即用)声卡。需要注意的是,如果测试到的声卡的IRQ或I/O地址存在冲突,系统将会被死锁。然而如果你确认你的声卡没有冲突,你可以选择[Detect]]。如果你想跳过这个步骤,就选择[Cancel]。

After this the main menu is displayed. Activate the "Add new card/device" to
add more cards if more than one of them installed. It will display a list
of devices from which you can choose your sound card. Use the arrow keys
to go up and down the list. Select a card by high-lighting it and pressing
the key.
接着,主菜单被显示。按下"Add new card/device",可增加声卡。它将显示一个可选列表供您选择。你可用光标键选择。

On some systems, you will be prompted to select the I/O addresses, IRQ and
DMA values for various sound card ports. Once you are done, you can simply
select the [OK] button and get back to the main menu.
有些系统可能需要你选择一下声卡的I/O地址,IRQ和DMA。当你完成后,你可以选择[ok]按钮继续。

If you have multiple sound cards, you can resolve the settings by
selecting the "Manual Configuration" option.
如果你拥有多块声卡,你可以通过选择"Manual Configuration"选项来解决。

When you have completed the configuration, save it by activating the
[Save changes and exit] selection. Its important to save the changes
after installing new Open Sound System version even if you made no changes
to the device configuration. Otherwise unnecessary driver modules will be
loaded during soundon.
当你完成了配置工作,就可以按[Save changes and exit]按钮。及时地将这配置保存是十分重要的。否则不必要的声卡驱动模块可能会为soundon调用。

Now you are ready to run Open Sound System by running the soundon command.
To check the status of your drivers, you can type "cat /dev/sndstat". This
will give you a detailed listing of all devices configured by OSS and also
information about your license and serial number.
这时候你就可以准备在命令行执行soundon命令来运行OSS了。你可以使用"cat /dev/sndstat"命令来检查你的驱动器的状态。这个命令将给出一个由OSS列出的详细驱动程序配置信息,还有一些OSS的许可协议及序列号。

Should you have any questions, please submit a technical support request by
fillout the form at http://www.4front-tech.com/support.cgi
如果你有什么问题,请到:http://www.4front-tech.com/support.cgi

-----------------------
Copyright (c) 1999, 4Front Technologies. All rights reserved.
Open Sound System
is a trade mark of 4Front Technologies.All other trade marks and copyrights belong
to their respective owners.

我的英文水平不好,翻译不好的地方请各位朋友见谅!:)

原作者:不详
来源:Linuxaid
hem 2001-05-24
  • 打赏
  • 举报
回复
Linux下装声卡(OSS中文安装说明)
推荐:浪子 发表日期:2000年9月7日 阅读次数:269
--------------------------------------------------------------------------------

    大家可能早已经领会到了Linux下对声卡的支持之丑陋,不管是从最初的RedHat 5.1还是现在的Mandrake 6.1,从来就没有让我的Ad1816声卡正儿八经的发过一句好听的声音(尽管官方报道 Linux Kernel 2.0.36以后版本已经支持Ad1816,可是不管我将内核编译了多少遍,它还是涛声依旧,寂静无声的Linux世界是我用Linux以来唯一的感觉不舒服的地方),不过现在好了,自从在网上DownLoad了一款Linux下的声卡支持软件,之后一切的烦恼都随之而去了,现在我在Linux下一样可以听MP3,看VCD,这样的感觉真爽……   好了,废话少说,我这里说的这个声卡驱动程序是大名鼎鼎的OSS,虽然它是一个商业的声卡驱动程序,但是你可以有240小时的免费使用时间,首先我们到http://www.opensound.com/download.cgi填写一个表格,然后就可以下载驱动程序了,下载的文件有好几种,根据不同的操作系统和不同的系统配置而有所不同:

    现在oss支持Caldera 2.3、TurboLinux 4.0、Mandrake 6.1、Redhat 6.1、SuSe 6.2、FreeBSD、Solaris等,你只要选择相应的操作系统就可以了,如果相应的操作系统不在列表中,你也不用着急,一样可以选择相应的驱动程序,它的文件名一般是这样一种格式:Linux 2.0.x-glibc(SMP)此时表示你如果用的编译库是glibc的话,系统核心是2.0.x,如果还支持多处理器,就可以下载它;反之如果你用的是2.2.x的内核并且编译库是libc,同时不支持多处理器,你可以下载Linux 2.2.x-libc5(UP)的文件(当然组合类型很多,你可以选择与你相符合的类型),比如我的Linux是Mandrake 6.1,可以在Select the Version of OSS后边选择Mandrake 6.1,在上边的声卡类型中输入Ad1816,然后Submit进入下载页面,在Click here to download OSS for Mandrake 6.1 联结上边点击就可以开始下载了。

    安装

    启动LINUX,把下载下来的osslinux392v-glibc-2212-UP.tar.gz拷到一个临时目录中:
  cp osslinux392v-glibc-2212-UP.tar.gz /tmp/
  cd /tmp
  tar zxvf osslinux392v-glibc-2212-UP.tar.gz

    此时文件已经解开,你可以看到在当前目录下有四个文件:INSTALL、LISCENSE、oss-install和oss.pkg文件,其中INSTALL是安装帮助文件,如果你是第一次安装一定要好好的看一看才是。

    配置

    以root用户运行oss-install,
  ./oss-install

    如果出现了“No such file or directory”的错误信息,那是因为你下载的OSS驱动程序的版本和你用的Linux不匹配,重新到上边的站点,下载相应的驱动程序就可以了。

    这时候,一般会提示,你的Linux以模块的形式加载了声卡驱动程序,要不要安装程序自动将它去掉,选择去掉就可以了。

    注:如果你想自己DIY一下,完全可以自己在OSS驱动程序安装之前就可以手工将声卡驱动程序去掉:
rmmod soundlow
rmmod soundcore
rmmod sound

    然后在/lib/modules下的相应目录中删除soundlow.o、soundcore.0和sound.o,至此手工删除原来声卡驱动程序完毕。

    接下来就是处理过程、协议及一大堆东西,接受协议安装,使用默认安装路径即可(/usr/lib/oss)。oss一般可以自动检测出大部分声卡,看看是不是和你的条件相符,如过一切和Windows 9X下看起来没有什么两样的话,直接在菜单中选择“Save changes and Exit.."。对于那些不能直接探测到的声卡,你就只有用手工方法选择了,找到你的声卡。如:Yamaha OPL3-SAX (YMF715/YMF719) chip 选:"Generic Yamaha OPL3-SAx (YMF715/YMF719) non-PnP" driver。

    打开/关闭声卡

    在默认的安装目录里/usr/lib/oss/有一个soundon命令用来打开oss驱动,同样的你也可以用soundoff关闭oss驱动。

    疑难解决

    有时也可能出现这样的情况,你的声卡检测到了,而且安装过程也好像一切正常,但是声卡就是不能正常工作,不要急,作为一个优秀的的商业声卡驱动程序,它肯定还有可以让你手工调节设置参数的地方,不知道你注意到了没有,在你的“Save changes and Exit”的同一个窗口中,还有一个选项“Manual Configuration”,它就是让你来手工调节设置参数的,,你可以在这里设置你的声卡的IO、DMA等等参数,如图三就是我的AD1816的设置界面,和你说一个诀窍吧:你可以在Windows下将声卡设置好,然后将它在Windows下的各种参数记下来,在这里依原样输入一般没有什么问题了。

    到此为至,你的声卡驱动程序已经安装好了,怎么?你还不知到怎么来发挥它的效能,X-Windows下的这样的应用程序比Windows下的一点都不少,X11amp、CD-Player......,哪个也不比Windows下的逊色嘛!(文 / 阎宗岭)〖合作单位:《远望资讯》〗

原作者:阎宗岭
来源:蓝森林

19,612

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧