免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1119 | 回复: 0

Gentoo下配置ALSA [复制链接]

论坛徽章:
0
发表于 2007-10-18 17:50 |显示全部楼层
老文章了,一直放在公司的wiki上,转过来归档,懒得翻译了.....
This article describes How to enable the ALSAKernel ConfigureThe sections relevant to ALSA are in Device Drivers >> Sound.
Here's what you need at the top level. Some of you might be thinking
"Hey, those look like the default settings", and you would be correct!
But if you may have already made changes, here's how things should be:
Linux Kernel Configuration: Sound
*> Sound card support
   Advanced Linux Sound Architecture --->
   Open Sound System --->
Then under Advanced Linux Sound Architecture --->:
Linux Kernel Configuration: Advanced Linux Sound Architecture
*> Advanced Linux Sound Architecture
*> Sequencer support
  > Sequencer dummy client
*> OSS Mixer API
*> OSS PCM (digital audio) API
  • OSS Sequencer API
    [ ] Verbose printk
    [ ] Debug Generic devices --->
        ISA devices --->
        PCI devices --->
        USB devices --->
    Next, we must enable the correct driver. For most of us, will be under
    "PCI devices", but if you are using an ISA or USB audio card go to the
    appropriate section.
    If you are unsure which driver to select, see the
    Alsa Soundcard Matrix
    .
    If you can't tell which item in menuconfig matches up with the driver
    name from alsa-project.org, press "?" with one selected to get more
    info on which cards it supports and the module name.
    Linux Kernel Configuration: PCI devices
    > ALi M5451 PCI Audio Controller
    > ATI IXP AC97 Controller
    > ATI IXP Modem
    > Aureal Advantage
    > Aureal Vortex
    > Aureal Vortex 2
    > Aztech AZF3328 / PCI168 (EXPERIMENTAL)
    > Bt87x Audio Capture
    > Cirrus Logic (Sound Fusion) CS4280/CS461x/CS462x/CS463x
    > Cirrus Logic (Sound Fusion) CS4281
    > Emu10k1 (SB  Audigy, E-mu APS)
    > Emu10k1X (Dell OEM Version)
    > SB Audigy LS / Live 24bit
    > Korg 1212 IO
    > Digigram miXart
    > NeoMagic NM256AV/ZX
    > RME Digi32, 32/8, 32 PRO
    > RME Digi96, 96/8, 96/8 PRO
    > RME Digi9652 (Hammerfall)
    > RME Hammerfall DSP Audio
    > RME Hammerfall DSP MADI
    > Trident 4D-Wave DX/NX; SiS 7018
    > Yamaha YMF724/740/744/754
    > Analog Devices AD1889
    > Avance Logic ALS4000
    > C-Media 8738, 8338
    > (Creative) Ensoniq AudioPCI 1370
    > (Creative) Ensoniq AudioPCI 1371/1373
    > ESS ES1938/1946/1969 (Solo-1)
    > ESS ES1968/1978 (Maestro-1/2/2E)
    > ESS Allegro/Maestro3
    > ForteMedia FM801
    > ICEnsemble ICE1712 (Envy24)
    > ICE/VT1724/1720 (Envy24HT/PT)
    > Intel/SiS/nVidia/AMD/ALi AC97 Controller
    > Intel/SiS/nVidia/AMD MC97 Modem (EXPERIMENTAL)
    > S3 SonicVibes
    > VIA 82C686A/B, 8233/8235 AC97 Controller
    > VIA 82C686A/B, 8233 based Modems
    > Digigram VX222
    *> Intel HD Audio
    ReInstall Kernel
    Once you have made the necessary changes in menuconfig, exit and save.
    build the kernel with
    #make && make modules_install
    Then mount the sda1 to the /boot directory , and copy the new bzImage into it.
    # mount /dev/sda1 /boot
    #Think_Squall_Caro linux
    # cp arch/i386/boot/bzImage /boot/
    Then reboot you computer
    Verify Driver
    Once you have booted your newly built kernel, you should make sure you enabled the correct driver. Simply run:
    # cat /proc/asound/cards
    Your output should be something like this:
    0 [NVidia         ]: HDA-Intel - HDA NVidia
                          HDA NVidia at 0xf5000000 irq 17
    If you have no soundcards listed, you didn't enable the correct driver.
    Go back to step 1 and try again. If your card is listed, continue!
    Set PermissionUntil you add your users to the "audio" group, they will be unable to
    use the sound card. My user is "ben", so I add him to the audio group
    like this:
    # gpasswd -a squall audio
    PS:If you are already logged into the user you
    are adding to the new group, you will need to log in freshly for it to
    take effect.
    Necessary SoftwareBy default, your sound will be muted. To unmute, we need alsamixer,
    which is part of the media-sound/alsa-utils package. Emerge it now:
    # emerge alsa-utils
    Now run alsamixer. The important channels are Master and PCM, you
    should unmute each of them with "M" then turn them up to 70% or so.
    When done, hit "esc" to leave alsamixer.
    At this point, alsa should be functioning. So fire up your favorite
    multimedia app with alsa support, and give it a go. My favorite is
    mplayer, its console output is very verbose and great for making sure
    alsa is functioning properly. If your applications have not been
    compiled with alsa support, you should add alsa to your USE flags in
    /etc/make.conf and use emerge --newuse --update world to rebuild them.
    Unless you set it up to save your mixer settings, your sound card will
    be muted every time you reboot. You can solve this by using the
    "alsasound" init script. Among other things, alsasound restores your
    mixer settings when you boot up and saves them when you shut down.
    First save your current mixer settings with /etc/init.d/alsasound save
    then add it to your default or boot runlevel so it'll automatically
    start (and restore your settings) at boot:
    # rc-update add alsasound boot


    本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/34010/showart_403220.html
  • 您需要登录后才可以回帖 登录 | 注册

    本版积分规则 发表回复

      

    北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
    未成年举报专区
    中国互联网协会会员  联系我们:huangweiwei@itpub.net
    感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

    清除 Cookies - ChinaUnix - Archiver - WAP - TOP