Gentoo安装详解(四)-- 声卡设置

硬件检测

To choose the right driver, first detect the used audio controller. You can use lspci for this task:

lspci | grep -i audio

内核配置

You need to activate the following kernel options:

Device Drivers --->
    Sound --->
        <*> Sound card Support
            <*> Advanced Linux Sound Architecture --->
                [*]   PCI sound devices  --->
 
                      Select the driver for your audio controller, e.g.:
                      <*>   Intel HD Audio  ---> (snd-hda-intel)
                            Select a codec or enable all and let the generic parse choose the right one:
                            [*] Build Realtek HD-audio codec support
                            [*] ...
                            [*] Build Silicon Labs 3054 HD-modem codec support
                            [*] Enable generic HD-audio codec parser

软件

You also want to install media-sound/alsa-utils, if it isn't already pulled in:

emerge --ask alsa-utils 

配置

权限

Add the user you want to be able to access the sound card to the audio group:

gpasswd -a larry audio
服务

You can now start ALSA:

/etc/init.d/alsasound start

To start ALSA at boot time, add it your boot runlevel:

rc-update add alsasound boot
Mixer调节音量,取消静音

If you can't hear anything, the output channels may be muted. Unmute the channels with your desktop environment's mixer or with alsamixer by selecting the appropriate channels and hitting the m key to mute or unmute:

alsamixer

测试声音

If everything above is perfect, you should now be able to test your sound card and your speakers. We will use the speaker-test command line tool from package media-sound/alsa-utils (this should already be installed as per our previous recommendation).

speaker-test -t wav -c 2

转载于:https://www.cnblogs.com/wonux/p/5174565.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值