📄 00000005.htm
字号:
<HTML><HEAD> <TITLE>BBS水木清华站∶精华区</TITLE></HEAD><BODY><CENTER><H1>BBS水木清华站∶精华区</H1></CENTER>发信人: reden (鱼 ~ 憧憬着风花雪月), 信区: Linux <BR>标 题: Opti931 Mini HOWTO <BR>发信站: BBS 水木清华站 (Fri Sep 18 01:00:50 1998) WWW-POST <BR> <BR>Note: Better View in WWW
<BR>
<BR>OPTi931 Mini-HOWTO
<BR>
<BR>Last Updated: May 23, 1998
<BR>
<BR>Preface:
<BR>
<BR>After buying a cheap $14.99 (Labled "ExpertColor Multimedia" on the box) <BR>sound card from Fry's Electronics, I couldn't for
<BR>the life of me get sound to work in Linux. I searched through DejaNews and <BR>joined the linux-sound mailing list, but all I could
<BR>find were people attempting to set it up, and for the most part, being <BR>unsuccessful or only partly successful. I finally got it to
<BR>work with the help of a few others.
<BR>
<BR>Here are the steps I took to get the OPTi931 working under Linux.
<BR>
<BR>1. Easy Way Out:
<BR>
<BR>If you're just looking for an easy way out, just go out and buy the driver <BR>from Open Sound System driver from 4Front
<BR>Technologies. Make sure sound is disabled in your kernel, run their program <BR>and voila! You have sound! This is super easy but
<BR>costs $20 if you plan on using it for any amount of time. Personally, I'd <BR>rather hack it and get it working the right way (and for
<BR>free!) If you were only willing to spend $10-20 on an Opti931 sound card, <BR>you're obviously too cheap to get a decent sound
<BR>card or buy the $20 driver, so read on and learn how to set the card up <BR>properly. ;-)
<BR>
<BR>2. Configuring/Compiling the Kernel:
<BR>
<BR>These directions apply only to kernel versions 2.0.X. I have recently <BR>upgraded to the latest development kernels, and the
<BR>installation routine there is slightly different. Refer to my OPTi931 on <BR>2.1.X page to set it up there.
<BR>
<BR>Compile sound as a module. I prefer to use xconfig when configuring. Here's <BR>the options needed. I'm using kernel 2.0.33 with
<BR>OSS Free sound drivers. The current drivers in 2.0.33 is apparently almost 2 <BR>years old! Grab the latest sound drivers from the
<BR>OSS Free Homepage. I also have the OSS sound drivers available.
<BR>
<BR>M Sound card support
<BR>Y Generic OPL2/OPL3 FM synthesizer support
<BR>Y MPU-401 support (NOT for SB16)
<BR>Y Microsoft Sound System support
<BR>Y FM synthesizer (YM3812/OPL-3) support
<BR>330 I/O base for MPU401 Check from manual of the card
<BR>5 MPU401 IRQ Check from manual of the card
<BR>530 MSS/WSS I/O base 530, 604, E80 or F40
<BR>7 MSS/WSS IRQ 7, 9, 10 or 11
<BR>0 MSS/WSS DMA 0, 1 or 3
<BR>1 MSS/WSS second DMA (if possible) 0, 1 or 3
<BR>
<BR>I recommend that you use the same settings as me. Change the configuration of <BR>your other cards if necessary. You'll find out
<BR>why later. Then do you standard make dep; make clean; make zlilo if <BR>necessary. If you didn't have sound compiled in your
<BR>kernel you don't need to do this, and you just need to do a make modules; <BR>make modules_install.
<BR>
<BR>Update:I have learned how to setup the Opti under different IO ports and <BR>IRQs. So you can now use any settings you wish.
<BR>
<BR>3. ISAPNPTOOLS:
<BR>
<BR>Next step is to download and run isapnp. Grab the latest version here. Then <BR>go to their website and read about it. I also have
<BR>version 1.14 available on my server. Basically, the documentation tells you <BR>to run these two commands after compiling and
<BR>installing the source.
<BR>
<BR>><I> pnpdump > isapnp.conf
</I><BR>
<BR>You need to then modify the isapnp.conf file to reflect the configuration <BR>used when making your modules. The most inportant
<BR>thing to change is to add this line to your config file.
<BR>
<BR>(CSN 1 (LD 0 (REG 2 (POKE 4))))
<BR>
<BR>This line turns off PnP control of the card, so that we can configure it. <BR>Take a look at my isapnp.conf if you're confused and
<BR>need a little guidance. When you're done, put it in /etc dir.
<BR>
<BR>Now run
<BR>
<BR>><I> isapnp /etc/isapnp.conf
</I><BR>
<BR>and you'll get some confirmation. I get
<BR>
<BR>Board 1 has Identity 74 ff ff ff ff 31 09 14 3e: OPT0931 Serial No <BR>4294967295 [checksum 74]
<BR>
<BR>4. Writing the configuration to the OPTi931
<BR>
<BR>We're almost there! We need to compile and run this little program. Here's <BR>the source code and binary. Thank Donald M
<BR>Burns for this nifty little program. Visit his OPTi931 homepage for some <BR>information on the Opti931 and his program.
<BR>Basically, this program writes the OPTi931 configuration. Here's the command <BR>line to set the OPTi931 to the settings
<BR>described earlier (MSS io-530, irq-7, dma-0, MPU-401 io-330, irq-5):
<BR>
<BR>To compile the source, use any compiler (I used gcc) and compile it like <BR>this:
<BR>
<BR>><I> gcc -o OPTi83C931 OPTi83C931.c
</I><BR>
<BR>and then run it.
<BR>
<BR>><I> OPTi82C931 0 0x07 1 0x07 3 0x09 4 0x14 5 0x3E 6 0x92
</I><BR>
<BR>Here's the output from this program:
<BR>
<BR>MCR0 <- 07 MCR1 <- 07 MCR3 <- 09 MCR4 <- 14 MCR5 <- 3E MCR6 <- 92
<BR>
<BR>Update: I just learned how to setup different I/O ports, IRQs and DMAs. <BR>Here's how it works. Notice how the command line
<BR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -