ºìÁªLinuxÃÅ»§
Linux°ïÖú
µ±Ç°Î»ÖÃ: ºìÁªLinuxÃÅ»§ > Ubuntu

¸ü»»Ubuntu×Ô´øµÄALSAÇý¶¯£¬»ñµÃ¸üºÃµÄÒôÖÊ

·¢²¼Ê±¼ä:2007-08-07 00:25:16À´Ô´:ºìÁª×÷Õß:acctorairev
ºÜ¾ÃûÓÐÓÃÒôÏäÌýÒôÀÖ£¬ÖÜÄ©±¾À´×¼±¸È¥ÂòÒ»¶Ô»ÝÍþM200 MK2£¬Ö®Ç°ÏÈÊÔÊÔÒѾ­·þÒÛ7ÄêµÄCreative Soundworks SW300£¬È´·¢ÏÖT60µÄÉù¿¨ÔÚUbuntuϵÄÒôÖʱÈWindowsϲîºÜ¶à£¬ÂòÒôÏäµÄÄîÍ·Ö»ºÃÔÝʱ×÷°Õ¡£

²»¸ÊÐĵØÔÚÍøÉÏËÑË÷ÁË°ëÌ죬ÕÒÁ˸ö°ì·¨£¬×Ô¼º±àÒëÒ»¸öALSAÇý¶¯£¬¸ü»»Ubuntu×Ô´øµÄÇý¶¯£¬»»ÉÏÈ¥ÌýÌý£¬È·ÊµÓÐÁ˲»Ð¡µÄ½ø²½£¬ÒÔÏÂÊDzÙ×÷²½Ö裺

Ê×ÏÈ£¬»ñÈ¡±àÒëÐèÒªµÄÈí¼þ°ü£º
sudo apt-get install build-essential ncurses-dev gettext

È»ºó
sudo apt-get install linux-headers-`uname -r`

ÔÚ±àÒëÌ滻֮ǰ£¬±ØÐëÊ×ÏÈÍ£Ö¹µ±Ç°µÄALSA·þÎñ£º
sudo /etc/init.d/alsa-utils stop
sudo /etc/init.d/alsasound stop

ÏÖÔÚ´´½¨Ò»¸öĿ¼£¬ÓÃÓÚ±àÒëalsaµÄÇý¶¯
mkdir alsa-src
cd alsa-src

È»ºóÏÂÔØ
wget ftp://ftp.alsa-project.org/pub/driver/alsa-driver-1.0.14rc3.tar.bz2
wget ftp://ftp.alsa-project.org/pub/lib/alsa-lib-1.0.14rc3.tar.bz2
wget ftp://ftp.alsa-project.org/pub/utils/alsa-utils-1.0.14rc2.tar.bz2

½â°ü
tar xvjf alsa-driver-1.0.14rc3.tar.bz2
tar xvjf alsa-lib-1.0.14rc3.tar.bz2
tar xvjf alsa-utils-1.0.14rc2.tar.bz2

ÔÚ±àÒë֮ǰ£¬»¹ÒªÏÂÔضÔÓ¦µÄ²¹¶¡Îļþ
wget http://lenovo.dropshock.com/files/realtek6.tar.gz

Óò¹¶¡ÎļþÌæ»»Ô´Îļþ
tar xvzf realtek6.tar.gz
cp patch_realtek.c ~/alsa-src/alsa-driver-1.0.14rc3/alsa-kernel/pci/hda/

ÏÖÔÚ¿ªÊ¼±àÒë
cd alsa-driver-1.0.14rc3
./configure --with-cards=hda-intel
make
sudo make install

cd ../alsa-lib-1.0.14rc3
./configure
sudo make install

cd ../alsa-utils-1.0.14rc2
./configure
sudo make install

ºÃÁË£¬±àÒëÍê³É£¬Ê£ÏµľÍÊÇÌæ»»µôÔ­ÓеÄalsaÇý¶¯

sudo modprobe -r snd-hda-intel && sudo modprobe snd-hda-intel

ÖØÐÂÆô¶¯alsa
sudo /etc/init.d/alsa-utils restart
sudo /etc/init.d/alsasound restart

È»ºóÖØÐÂÆô¶¯Ubuntu£¬¿ÉÄܻᷢÏÖÒôÁ¿Í¼±êÉÏÓиöºì²æ£¬ÐèÒªÔÚÒôÁ¿¿ØÖƽçÃæÖн«PCMµÄ¾²ÒôÈ¡Ïû¡£ÔÙÌýÌý£¬ÒôÖʹûÈ»ºÃÁ˲»ÉÙ¡£
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 0 ÌõÆÀÂÛ