Linux中国 Linux中国门户站!
设为主页 设为主页
收藏本站 收藏本站
 
当前位置 :首页 ->Linux技术 ->桌面应用 ->正文

Linux系统下声卡驱动软件的安装配置

来源:赛迪网技术社区  作者:Webmaster 时间:2007-04-19 点击: [收藏] [投稿]

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

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上音乐荡漾 MPlayer的完美安装   下一篇:GNU/Linux系统开发者需要从桌面突破

文章评论】 【收藏本文】 【推荐好友】 【打印本文】 【我要投稿】 【论坛讨论
更多相关文章
Power by linux-cn.com 粤ICP备05006655号