From owner-freebsd-questions Tue Jul 20 1:24:28 1999 Delivered-To: freebsd-questions@freebsd.org Received: from twwells.com (twwells.com [209.118.236.57]) by hub.freebsd.org (Postfix) with SMTP id F127215271 for ; Tue, 20 Jul 1999 01:24:15 -0700 (PDT) (envelope-from news@twwells.com) Received: from news by twwells.com with local (Exim 1.71 #2) id 116V69-000Iob-00; Tue, 20 Jul 1999 04:18:01 -0400 From: bill@twwells.com (T. William Wells) To: freebsd-questions@freebsd.org Subject: SB16 config for 3.2 Message-ID: <7n1ba7$26au$1@twwells.com> Date: Tue, 20 Jul 1999 04:18:01 -0400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In my last message, I had said "ViBRA16C". That was a mistake. The 'C is the *old* SB16 card, for which things should work without anything special. The 'X, which is what I *actually* have, is different. There are two basic differences between the cards. The old card uses two DMA channels, one 8 bit and one 16 bit. The new card also can use two DMA channels, but both are 8 bit. On the old card, the microphone is evidently turned "up" by default; the new card, you have to turn it up yourself. The pcm driver docs also say that the new card won't do full duplex but I haven't tested this. There are plenty of other descriptions of configuring the old SB16 card, so I won't be describing that here. However, here is what I did for the new one: In my kernel configuration: device pcm0 at isa? port? tty irq 5 drq 1 flags 0xB Note the flags at the end. They're saying that I'm using DMA channel 3 as the secondary DMA channel. In /boot/kernel.conf pnp 1 0 os enable port0 0x220 port1 0x300 port2 0x388 irq0 5 drq0 1 drq1 3 I'm using port 0x300 instead of the default 0x330. That's because I also have an Adaptec 1540 SCSI controller in my machine. If 0x330 is free, you might as well use it. You also need to set up the devices in /dev. As root, cd to /dev and enter "./MAKEDEV snd1". Yes, 1. The pcm driver starts numbering from 1, for reasons unclear to me. Finally, after your system is booted, run the command "/usr/sbin/mixer mic 100". That turns up the microphone. To run it automatically at boot, put the command into a file in /usr/local/etc/rc.d, say, "upmic.sh" (and be sure to make it executable). I have had my system hang with this configuration. This occured when I was reading from /dev/audio for a long time. My guess is that it screwed up the DMA for my SCSI controller. I'll be looking into this when I have some spare minutes.... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message