ºìÁªLinuxÃÅ»§
Linux°ïÖú

Fedora Core3ÉÏ°²×°AlsaÉù¿¨Çý¶¯

·¢²¼Ê±¼ä:2006-09-11 00:08:04À´Ô´:ºìÁª×÷Õß:lgms2008
»·¾³:

[code]OS Fedora Core 3
kernel 2.6.10-1.741_FC3
glibc 2.3.4-2
gcc 3.4.2
kde 3.3.1
gnome 2.8.0
Xorg 6.8.1[/code]

ÒÔÏ°²×°ÊÊÓ¦ÓÚFedora Core3,ÆäËû°æ±¾µÄLinux¿ÉÒԲο¼,µ«ÊÇÍêÈ«ÕÕ°á²»Ò»¶¨Äܳɹ¦(±ÈÈçDebian),ÄãÐèÒª¸ù¾Ý×Ô¼ºµÄϵͳÀ´ÐÞ¸ÄÅäÖÃÎļþ.

°²×°²½Öè:

1.ÏÂÔØÐèÒªµÄÈí¼þ:

Ê×ÏÈ´Óhttp://www.alsa-project.org/ÉÏÏÂÔØÒÔÏÂÕâЩÈí¼þ

ftp://ftp.alsa-project.org/pub/driver/alsa-driver-1.0.8.tar.bz2 (±ØÐë)

ftp://ftp.alsa-project.org/pub/lib/alsa-lib-1.0.8.tar.bz2 (±ØÐë)

ftp://ftp.alsa-project.org/pub/utils/alsa-utils-1.0.8.tar.bz2 (±ØÐë)

ftp://ftp.alsa-project.org/pub/tools/alsa-tools-1.0.8.tar.bz2 (¿ÉÑ¡)

ftp://ftp.alsa-project.org/pub/firmware/alsa-firmware-1.0.8.tar.bz2 (¿ÉÑ¡)

ftp://ftp.alsa-project.org/pub/oss-lib/alsa-oss-1.0.8.tar.bz2(±ØÐë)

2.±àÒëalsaÇý¶¯¼°Ïà¹ØÈí¼þ

a. alsa-driver

[code]# tar jxvf alsa-driver-1.0.8.tar.bz2

# cd alsa-driver-1.0.8[/code]

ͨ³£ÐèÒªÊ×ÏÈÖªµÀ×Ô¼ºÉù¿¨µÄоƬµÄ¾ßÌåÐͺÅ,È»ºóÔÙͨ¹ýÖ¸¶¨±àÒë²ÎÊýÀ´±àÒëÐèÒªµÄÇý¶¯,¸Ã²ÎÊýΪ--with-cards=,¿ÉÒÔÓÃ--with-cards=allÀ´±àÒëalsaËùÖ§³ÖµÄËùÓÐÇý¶¯,µ«ÕâÑù»áÕ¼Óøü¶àµÄ´ÅÅÌ¿Õ¼ä,Òò´Ë²»ÍƼö.оƬÐͺſÉÒÔͨ¹ýÔĶÁ˵Ã÷Êé»òÕßÔÚlinuxÏÂʹÓÃlspci -vµÈÇþµÀÀ´²éÕÒ,ÖªµÀ¾ßÌåµÄоƬÐͺÅÖ®ºó¿ÉÒÔµ½alsaµÄÍøÕ¾ÉÏÑ°ÕÒ¸ÃÉù¿¨µÄÇý¶¯µÄ±àÒëºÍÅäÖÃÎĵµ.ÀýÈçÎÒµÄÉù¿¨ÊÇintel810µÄÉù¿¨,ÄÇôÔÚhttp://www.alsa-project.org/alsa-doc/ Ò³ÃæÉϵÄChoose manufacturer for more details ÏÂÀ­²Ëµ¥ÖÐÑ¡ÔñintelÈ»ºóµãGO,½ÓÏÂÀ´»áµÃµ½Ò»¸ö±í¸ñ,Ñ¡Ôñ±í¸ñÖÐDriver & DocsÕâÒ»ÁÐÀïÓÐÏêϸÉù¿¨Çý¶¯°²×°µÄÁ¬½Ó,µãDetailÅԱߵÄintel8x0¼´¿ÉµÃµ½ËµÃ÷Ò³Ãæ.½ÓÏÂÀ´µÄ²½Ö趼ÊDzο¼¸ÃÎĵµ½øÐеÄ,ÔÚÅäÖÃÖÐÐèÒª¸ù¾Ý×Ô¼ºµÄʵ¼ÊÇé¿öÑ¡ÔñÊʺϵÄÉù¿¨ÅäÖÃ˵Ã÷Îĵµ.

[code]# ./configure --with-cards=intel8x0 --with-sequencer=yes;make;make install

# ./snddevices #´´½¨É豸Îļþ[/code]
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 7 ÌõÆÀÂÛ

  1. beyondself ÓÚ 2014-05-26 17:01:04·¢±í:

    ºÃ¶«Î÷°¡

  2. dalin ÓÚ 2014-05-20 10:20:39·¢±í:

    ÐÂÊÖ£¬×¬¾­Ñ飬¥Ö÷ÐÁ¿à£¡

  3. eastwood ÓÚ 2014-05-20 08:24:22·¢±í:

    ѧϰѧϰ¡£¡£¡£¡£¡£

  4. sdkhy0808 ÓÚ 2014-05-15 09:56:50·¢±í:

    alsa-driver²»ÄÜmakeºÍmake installÂð

  5. saber312 ÓÚ 2011-12-25 12:20:29·¢±í:

    лл

  6. lgms2008 ÓÚ 2006-09-11 00:09:31·¢±í:

    6.²âÊÔ

    Ê×ÏÈÔËÐÐalsamixer°Ñ¸÷·Êä³öµÄÒôÁ¿¶¼´ò¿ª,È»ºó´ò¿ªxmms,mplayerÊÔÊÔ°É,¿ÉÒÔͬʱ³öÉùÁË,ºÇºÇ,¶ÔÓÚ°´ÕÕÉÏÃæµÄ²½ÖèÈÔÈ»²»ÄܺͱðµÄ³ÌÐòͬʱ·¢ÉùµÄ³ÌÐò¿ÉÒÔÓÃaossÀ´Æô¶¯,ÀýÈçrealplayer¿ÉÒÔ´´½¨Ò»¸ö¿ì½Ý·½Ê½,Ö´ÐÐÃüÁîÊÇaoss realplayerÕâÑù¾ÍÐÐÁË.

  7. lgms2008 ÓÚ 2006-09-11 00:09:11·¢±í:

    Èç¹û²»³öÒâÍâ,ÉÏÃæµÄ¹¤×÷×öÍêÖ®ºó,Çý¶¯³ÌÐò¾Í°²×°ºÃÁË:),ÌáÐÑÒ»ÏÂ,ĬÈÏÇé¿öÏÂalsaµÄÇý¶¯¶¼ÊǾ²ÒôµÄ,ÎÒÃDZØÐëÓûìÒôÆ÷µ÷½ÚÒôÁ¿²ÅÄܳöÉùÒô.

    b.°²×°alsa-lib

    ºÜ¼òµ¥,ûʲôºÃ˵µÄ,°´ÕÕÏÂÃæ²½Öè°²×°¾ÍÐÐÁË:

    [code]# tar jxvf alsa-lib-1.0.8.tar.bz2

    # cd alsa-lib-1.0.8

    # ./configure;make;make install[/code]

    c.°²×°alsa-utils

    [code]# tar jxvf alsa-utils-1.0.8.tar.bz2

    # cd alsa-utils-1.0.8

    # ./configure;make;make install[/code]

    d.°²×°alsa-oss

    [code]# tar jxvf alsa-oss-1.0.8.tar.bz2

    # cd alsa-oss-1.0.8

    # ./configure --with-aoss=yes;make;make install[/code]

    e.ÆäËû

    ʣϼ¸¸ö°ü¶¼ÊÇ¿ÉÑ¡µÄ,±àÒë·½·¨Ò²ºÜ¼òµ¥,ÕâÀï¾Í²»ËµÁË.

    3. ÅäÖÃmodprobe.conf

    ÕâÀïµÄ¹¤×÷ÊÇÈÃϵͳÔÚÆô¶¯µÄʱºò×Ô¶¯¼ÓÔØÉù¿¨Çý¶¯,Èç¹ûÄãµÄÉù¿¨ÒÔÇ°¿ÉÒÔ±»Linuxϵͳʶ±ð,ÄÇôÕâ¸öÎļþÀï»áÓÐÔ­ÏÈÇý¶¯µÄÅäÖÃÐÅÏ¢,ÎÒÃÇÐèÒª°ÑËûÃÇÈ«²¿É¾µô,ÀýÈçÎÒµÄmodprobe.confÖÐÓÐ

    [code]alias snd-card-0 snd-intel8x0
    options snd-card-0 index=0
    install snd-intel8x0 /sbin/modprobe --ignore-install snd-intel8x0 &&

    /usr/sbin/alsactl restore >/dev/null 2>&1 || :remove snd-intel8x0 {

    /usr/sbin/alsactl store >/dev/null 2>&1 || : ; }; /sbin/modprobe -r --ignore-remove snd-intel8x0[/code]

    ÄÇôÐèÒª°ÑÕ⼸Ðж¼É¾³ý,È»ºó¼ÓÈëalsaÇý¶¯µÄÅäÖÃ,²»Òªµ£Ðĸ´ÔӵIJÎÊýÉèÖÃ,ÒòΪËùÓеÄÉù¿¨Çý¶¯Ä£¿éµÄÉèÖÃÔÚÎĵµÖж¼ÓÐ(»¹¼ÇµÃ°²×°alsa-driver½ÐÄã·ÃÎʵÄÒ³ÃæÂð?),ͨ¹ý²é¿´alsaÖ÷Ò³ÉϹØÓÚintel8x0µÄÎĵµ,ÎÒÔÚmodprobe.confÀï¼ÓÈëÁËÒÔϼ¸ÐÐ:

    [code]¡¡¡¡# ALSA portion
    alias char-major-116 snd
    alias snd-card-0 snd-intel8x0
    # module options should go here

    # OSS/Free portion
    alias char-major-14 soundcore
    alias sound-slot-0 snd-card-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[/code]

    4. ²âÊÔеÄÉù¿¨

    µ½´Ë,Éù¿¨Çý¶¯¾Í°²×°³É¹¦ÁË,ÎÒÃÇÏÖÔÚÐèÒªÖØÆô»úÆ÷ÈÃеÄÇý¶¯ÉúЧ(µ±È»¿ÉÒÔ²»ÖØÆô,²»¹ýÄãµÃÏÈrmmod¾ÉÇý¶¯È»ºóÖ´ÐÐ:modprobe snd-intel8x0;modprobe snd-pcm-oss;modprobe snd-mixer-oss;modprobe snd-seq-oss)

    5.asoundrcÎļþ

    ×öÍêÉÏÃæµÃ¹¤×÷½ö½öÊÇÄÜÇý¶¯Éù¿¨¶øÒÑ,Òª×öµ½¶à·ÒôƵ»ìºÏÊä³ö»¹µÃÔÚÄãµÄhomeĿ¼Ï´´½¨Ò»¸ö.asoundrcÎļþ,ÄÚÈÝÈçÏÂ,ÄãÖ»Òª°ÑÏÂÃæµÄÄÚÈݸ´ÖÆÏÂÀ´Ìùµ½Äã×Ô¼ºµÄÎļþÀï¼´¿É,ÐèÒª¸Ä¶¯µÄÖ»ÓÐÁ½¸öµØ·½:

    [code]pcm.intel8x0 { #<--ÕâÀïµÄintel8x0»»³ÉÄã×Ô¼ºµÄÇý¶¯Ãû×Ö
    type hw
    card 0
    }

    ctl.intel8x0 { #<--ÕâÀïµÄintel8x0»»³ÉÄã×Ô¼ºµÄÇý¶¯Ãû×Ö
    type hw
    card 0
    }

    pcm.!default {
    type plug
    slave.pcm "dmixer"
    }

    pcm.dmixer {
    type dmix
    ipc_key 1024
    slave {
    pcm "hw:0,0"
    period_time 0
    period_size 1024
    buffer_size 8192
    rate 44100
    }

    bindings {
    0 0
    1 1
    }
    }

    ctl.dmixer {
    type plug
    slave.pcm "dmixer"
    }

    pcm.mixin {
    type dsnoop
    ipc_key 5978293 # must be unique for all dmix plugins!!!!
    ipc_key_add_uid yes
    slave {
    pcm "hw:0,0"
    channels 2
    period_size 1024
    buffer_size 4096
    rate 44100
    periods 0
    period_time 0
    }
    bindings {
    0 0
    0 1
    }
    }[/code]