From owner-freebsd-questions Sat Jan 29 21:22:58 2000 Delivered-To: freebsd-questions@freebsd.org Received: from topsecret.net (gill.apk.net [207.54.148.62]) by hub.freebsd.org (Postfix) with SMTP id 6DD6D14F94 for ; Sat, 29 Jan 2000 21:22:54 -0800 (PST) (envelope-from gill@topsecret.net) Received: from pacific.int.topsecret.net by topsecret.net with SMTP (MDaemon.v2.7.SP5.R) for ; Sun, 30 Jan 2000 00:22:50 -0500 Date: Sun, 30 Jan 2000 00:22:55 -0500 (EST) From: James Gill X-Sender: gill@pacific.int.topsecret.net To: freebsd-questions@freebsd.org Subject: OPTi 931 Sound Card config questions Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-MDaemon-Deliver-To: freebsd-questions@freebsd.org X-Return-Path: gill@topsecret.net Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello. I am trying to get my OPTi 931 working under 3.4-RELEASE with GNOME and Enlightenment. I've read the handbook and the pcm(4) man page. I think I need more information. In the section under OPTi, I find the following line which is repeated in the handbook and the pcm(4) man page: ---file:/usr/src/sys/i386/isa/snd/CARDS--- PNP CONFIG: pnp 1 1 os enable port0 0x534 port2 0x220 port3 0xe0d irq0 10 drq0 1 drq1 6 ---file:/usr/src/sys/i386/isa/snd/CARDS--- But this isn't working for my kernel. I always get a "config: line 174: syntax error" on this line. I booted another machine with the card in it and found out that mine is set as follows: Audio: I/O address: 530h IRQ 5 DMA Playback 1 DMA Record 0 MPU-401: (enabled) I/O address: 330h IRQ 2/9 DMA buffer size: 16 My dmesg currently says: ---from dmesg--- Probing for PnP devices: CSN 1 Vendor ID: OPT0931 [0x3109143e] Serial 0xffffffff Comp ID: @@@0000 [0x00000000] This is an OPTi931, but LDN 1 is disabled Probing for devices on the ISA bus: ---end dmesg--- I have tried "boot -c" to no avail. I can't find the configuration floppies or the files to download to config the card anywhere. :/ I think I would be doing better if I knew what each individual option in the pnp line above meant. What does "os enable" mean/do? What does port0 refer to? Should I change the 0x534 to 0x530 to match my card's config? Now, not being exactly clear on what all the options in that pnp line mentioned above meant, I tried the following in my kernel: --- from MYKERNEL --- controller pnp0 # PnP support for ISA controller isa0 controller eisa0 # SoundCard Support pnp 1 1 os enable port0 0x534 port2 0x220 port3 0xe0d irq0 10 drq0 1 drq1 6 --- end MYKERNEL --- without much luck. This is the only ISA card, the only PNP card, and the only EISA card in my system. So, can I leave off the "controller pnp0" line? Will the "pnp 1 ..." line suffice? I also find some confusing language in the handbook: ---file:/usr/share/doc/en/books/handbook_3.3/kernelconfig-config.html--- To include sound card support, you will have to copy the appropriate lines from the LINT kernel (which support for every device) as follows: controller snd0 Generic sound driver code. Required for all of the following sound Hello. I am trying to get my OPTi 931 working under 3.4-RELEASE with GNOME and Enlightenment. I've read the handbook and the pcm(4) man page. I think I need more information. --- from MYKERNEL --- ... controller pnp0 # PnP support for ISA controller isa0 controller eisa0 # # SoundCard Support ##controller pnp0 compiled in above pnp 1 1 os enable port0 0x534 port2 0x220 port3 0xe0d irq0 10 drq0 1 drq1 6 ... --- end MYKERNEL --- cards except pca and pcm. ... device pcm0 at isa? port ? tty irq 10 drq 1 flags 0x0 The pcm driver provides support for various ISA sound cards that are compatible with the WSS/MSS specs, or with the Sound Blaster Pro and Sound Blaster 16. Note: There is some additional documentation in /usr/src/sys/i386/isa/sound/ and /usr/src/sys/i386/isa/snd/. Also, if you add any of these devices, be sure to create the sound device nodes. ---end file:/usr/share/doc/en/books/handbook_3.3/kernelconfig-config.html--- It says that I need the snd0 for every card *but* pca & pcm but nowhere do I see it telling me to insert the pcm line, only the pnp one!? I think I can deduce that my card is pcm because a pnp instruction turns up for it in the pcm(4) man page. Should I also have the pcm line given here? Again, what sections of this line correlate to the configs I know about the card? This also hints that the WSS/MSS lines I'd seen around the files quoted here might be applicable. Are they? Finally, this last section I found was dated from August of last year, but 2.1 was long since gone even by then! Hopefully that's what the feature freeze is all about. I'd like to help if I can, if the task is editing the sections relevant to the OPTi card or just bringing this to light. ---file:/usr/src/sys/i386/isa/sound/sound.doc--- Instructions on using audio on a FreeBSD 2.1 (or 2.0-current) system. See also /sys/i386/conf/LINT. To enable sound driver support, the controller sound code must be included in your config file: # SB = SoundBlaster; PAS = ProAudioSpectrum; GUS = Gravis UltraSound # Controls all sound devices controller snd0 ---end file:/usr/src/sys/i386/isa/sound/sound.doc--- I should also note that I did do: cd /dev ./MAKEDEV snd1 already as root and it seemed a success. :) Thank you for answering one or many of these questions and for helping me out of my silence! p.s. Is there anything special I should do to gnome or enlightnenment to get the sound up in there? I'm excited to hear what it's like! TIA! --gill To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message