扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
六:系统测试和声卡设备调整。
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”恢复。
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。
现场直击|2021世界人工智能大会
直击5G创新地带,就在2021MWC上海
5G已至 转型当时——服务提供商如何把握转型的绝佳时机
寻找自己的Flag
华为开发者大会2020(Cloud)- 科技行者