Linux下声卡驱动软件的安装配置
查看( 977 ) /
评论( 20 )
TAG:
-
冰雪@寒
发布于2007-03-29 22:34:24
-
五:编辑/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] [---]”
你会发现你的调整已经起作用了。
-
冰雪@寒
发布于2007-03-29 23:11:05
-
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)
如果你的声卡不再此列,请下载最新版本的软件。
-
shmilily
发布于2007-03-30 12:45:06
-
还以为是驱动其它软件的,orz
-
shmilily
发布于2007-03-31 23:59:13
-
这个东西好,我看到了。明天试试
-
tonykorn97
发布于2007-04-01 10:35:45
-
好文章!不过我们一般都不需要声音!
-
shmilily
发布于2007-04-01 17:14:40
-
我要啊,要听歌
-
shmilily
发布于2007-04-01 17:15:17
-
七:聆听自由的声音。
到此,所有的安装过程全部结束了。由于每个人的系统配置各异,所以作者无法预料到所有的情况。有任何问题请平心静气,仔细研究、思考。解决不了欢迎上网讨论。要知道,这样你的Linux使用水平会迅速提高。一步到位的安装虽然简单,但是少了DIY的乐趣。
感谢你有如此耐心,现在启动X Window,打开MP3播放器,尽情享受美妙音乐的乐趣吧!
为什么是xwindows,不是应该linux吗?
-
chelseaZ
发布于2007-04-01 17:59:33
-
shmlily.你快来看
-
chelseaZ
发布于2007-04-01 18:01:46
-
QUOTE:
最初由 shmilily 发布
不理阿~
[B]七:聆听自由的声音。
到此,所有的安装过程全部结束了。由于每个人的系统配置各异,所以作者无法预料到所有的情况。有任何问题请平心静气,仔细研究、思考。解决不了欢迎上网讨论。要知道,这样你的Linux使用水平会迅速提高。一步到位的安装虽然简单,但是少了DIY的乐趣。
感谢你有如此耐心,现在启动X Window,打开MP3播放器,尽情享受美妙音乐的乐趣吧!
为什么是xwindows,不是应该linux吗? [/B]
照着做,能听得到歌就行了~!
-
shmilily
发布于2007-04-01 22:12:40
-
好,不过刚才想换个系统把机给弄的不成样子了,现在还没办法实现
搞定了我再来报告一下
-
求是赤子发布于2007-04-01 22:52:51
-
有没有linux的还原精灵啊
-
shmilily
发布于2007-04-01 23:29:40
-
我要还原精灵没用啊,因为它一直就没声音
-
求是赤子发布于2007-04-02 00:39:55
-
不会吧,你搞了这么就还没声音?
-
shmilily
发布于2007-04-02 08:43:51
-
楼主,我找不到这个资源阿,能否提供一下
-
shmilily
发布于2007-04-02 09:22:24
-
1:打开内核中的声卡支持。
绝大多数情况下,此步骤可以忽略,因为基本所有Linux发行版本内核默认状态都是支持声卡设备的。
这个看不懂,怎么打开?
-
shmilily
发布于2007-04-02 09:24:06
-
2:运行脚本。
输入命令:
“./configure”
如果你的声卡属于ISA即插即用类型,请输入下面的命令:
“./configure --with-isapnp=yes”
这个执行不了,不过先问问是在哪个文件夹里执行的?
-
shmilily
发布于2007-04-02 09:28:59
-
root@yy-desktop:~/alsa-driver-0.5.9b# ./configure --with-isapnp=yes
loading cache ./config.cache
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH
很郁闷阿
-
shmilily
发布于2007-04-02 09:30:44
-
QUOTE:
最初由 求是赤子 发布
我一直都没装好mplayer,所以都没留意有没有声音阿
[B]不会吧,你搞了这么就还没声音? [/B]
-
shmilily
发布于2007-04-02 21:32:57
-
顶顶,有没有人会啊?
我搞不定了,baidu了也不行
-
fengchen1979发布于2007-04-04 09:48:11
-
好文章 支持支持啊 呵呵 不过服务器好想真的不需要啊
