📄 00000024.htm
字号:
confusing. It is necessary to modify Modprobe's configuration file <BR> with the necessary ALSA information. This file resides under the /etc <BR> directory, and depending on what version of Modprobe you have <BR> installed, it may be called either 'conf.modules', or 'modules.conf'. <BR> For newbies, the easiest way to locate and edit this file is to use <BR> the graphical file manager in KDE or Gnome (or whatever) to locate <BR> this file, and click on it to open up a text editor. There may already <BR> be a few lines of text in there, which we don't want to disturb. <BR> <BR> Let me take a moment here to recommend that you make a backup copy of <BR> this file before proceeding. A backup 'should' automatically be <BR> created later, but just to be safe, do it by hand. Name it <BR> conf.modules.old or something similar to that, and put it in a safe <BR> place, just in case. Always backup any file you edit by hand. <BR> <BR> If you are using something other than VT82C686, you have have to <BR> figure out what ALSA call your card, and what, if any snd_id you will <BR> need for the interwave entry. Many sound cards have listed in the <BR> ALSA doc what you should use but many of the newer "cards" dont. If <BR> not, try the following: <BR> <BR> Where $Install is where you've placed your ALSA install (perhaps <BR> /usr/local/alsa), <BR> cd $Install/alsa-driver-0.5.9c/modules <BR> ls <BR> <BR> These are the possible values you can replace snd-card-via686a with. <BR> <BR> To determine if your card requires the extra snd_id parm: <BR> cd $Install/alsa-driver-0.5.9c/cards <BR> grep Card: YOURDRIVERFILE.c <BR> <BR> This should list the possible id's your card might take; for the <BR> via686a this returns nothing, this means you don't have to specify <BR> that parameter. You might also find that grep "Card identification <BR> stuff" *.c in this dir will help you figure out which driver works for <BR> your card. The trick is that some of the module names leave off <BR> "card", so you still have to go to the module dir to figure out which <BR> name you should specify in the configuration file. <BR> <BR> Once you have the conf.modules file open in your text editor, move the <BR> text cursor to the line after any other existing entries, and add <BR> these lines to the file: <BR> <BR> # ALSA native device support <BR> alias char-major-116 snd <BR> options snd snd_major=116 snd_cards_limit=1 <BR> alias snd-card-0 snd-card-via686a <BR> #next line might need to have snd_id, if so... <BR> options snd-card-interwave snd_index=0 # see below <BR> <BR> # OSS/Free setup <BR> alias char-major-14 soundcore <BR> alias sound-slot-0 snd-card-0 <BR> alias sound-service-0-0 snd-mixer-oss <BR> alias sound-service-0-1 snd-seq-oss <BR> alias sound-service-0-3 snd-pcm-oss <BR> alias sound-service-0-8 snd-seq-oss <BR> alias sound-service-0-12 snd-pcm-oss <BR> #----------> end add to /etc/conf.modules <BR> <BR> Some cards require something more like this on the interwave. <BR> options snd-card-interwave snd_index=0 snd_id="YMF724" <BR> <BR> #I also found I had to remove: <BR> alias sound-slot-0 sb <BR> options sound dmabuf=1 <BR> alias midi opl3 <BR> options opl3 io=0x388 <BR> options sb io=0x240 irq=5 dma=1 <BR> #---------> end remove /etc/conf.modules <BR> <BR> Save this file under the same name. If your first guess at snd_id and <BR> snd_card dont work, keep trying variations. <BR> <BR> Almost done now. Switch back to the console, and enter the following <BR> command: <BR> <BR> modprobe snd-card-via686a <BR> <BR> For all intents and purposes, your ALSA driver is now setup and ready <BR> to go, but there are a few things you should be aware of. First of <BR> all, reboot. It's a pain, but I like to take the side of caution and <BR> make sure that everything loads and works as it should. <BR> <BR> NOTE: This is important. When the driver is first installed, it sets <BR> all the mixer channels to "Mute". You must use a mixer app of some <BR> sort to turn the volume up on the various sound channels. I use KDE, <BR> and the mixer app built into the status bar works just fine. If you <BR> downloaded the ALSA utils also, there is a mixer app in there that you <BR> can use as well. <BR> <BR> Finally, you may want or need to setup "aslasound" as a startup <BR> service. It is beyond the scope of this document to discuss each <BR> distro's method of doing this. However, most distros now come with <BR> utilities to help you setup your startup services using a GUI of some <BR> sort. If not, you may need to edit your /etc/rc.local file by hand. <BR> <BR> Have fun with ALSA. So far, it has worked 100% with my KDE sounds, <BR> playing CD's and starcraft had sound with no problems. <BR> <BR> Some non-ALSA help for Southbridge: <BR> For folks running redhat or caldera, you can pickup drivers at VIA <BR> Technologies's web site, <BR> <A HREF="http://www.via.com.tw/drivers/index.htm">http://www.via.com.tw/drivers/index.htm</A> <BR> Look in the section that discusses enabling the VT82C686A Southbridge <BR> Audio Drivers <BR> <BR> Incidentally, the MB I had which has this chipset is Biostart's M7VKB <BR> Would you like to have your article published online? Send them in to <BR> <A HREF="mailto:newfiles@linuxnewbie.org">newfiles@linuxnewbie.org</A> <BR> ========================End=================================== <BR> <BR>谁有空翻译或者改编一把好了。呵呵... <BR> <BR>-- <BR> <BR>※ 来源:·BBS 水木清华站 smth.org·[FROM: 210.73.87.125] <BR><CENTER><H1>BBS水木清华站∶精华区</H1></CENTER></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -