Linux 版 (精华区)

发信人: tcpip (俺的昵称改了), 信区: Linux
标  题: Configuring Your SoundBlaster in BSD
发信站: 哈工大紫丁香 (Wed Sep  8 12:46:32 1999), 转信

发信人: zzt (我命由我不由天), 信区: Linux

标  题: Configuring Your SoundBlaster in BSD

发信站: BBS 荔园晨风站 (Fri Sep  3 16:34:41 1999), 转信

【 以下文字转载自 zzt 的信箱 】

【 原文由 zzt.bbs@bbs.zd.dhs.org 所发表 】

作者: fuse (保险丝) 看板: FreeBSD

标题: Configuring Your SoundBlaster in FreeBSD

时间: Fri Jun  4 02:50:30 1999

Configuring Your SoundBlaster in FreeBSD

Sound card configuration under FreeBSD is not the most intuitive or well do

cumented procedure. Here's some info to help you along, and examples from m

y own, working kernel. I've used the SoundBlaster AWE 32 and AWE 64 cards s

uccessfully.

This document will give you simple instructions for the traditional FreeBSD

 sound driver configuration. If you want to configure your sound card using

 Luigi's new PnP code, check out Luigi's Sound Drivers Also check out the f

ile /usr/src/sys/i386/isa/sound/sound.doc for more information.

Brief description of IRQ/DRQ settings:

In the following examples, note how the IRQ is set, and how the DRQ is used

 toencode the DMA channel. This is crucial! Also note that cards such as so

me Gravis UltraSound (GUS) cards use a 2nd DMA channel. This must be specif

ied in theflags!

SoundBlaster typical setup with one DMA channel:

# Sound blaster with IRQ 5 and DMA channel 1:

device sb0 at isa? port 0x220 irq 5 drq 1 vector sbintr

The case is much the same for this example GUS card:

# GUS using IRQ 12 and only one DMA channel (1):

device gus0 at isa? port 0x220 irq 12 drq 1 vector gusintr

Finally, an example GUS with two DMA channels. Note that the second DMA cha

nnel is configured in the 'flags':

# GUS using IRQ 12 and two DMA channels, 1 and 3:

device gus0 at isa? port 0x220 irq 12 drq 1 flags 0x3 vector gusintr

1. Check the LINT file.

LINT is your ally. It contains examples for most types of hardware. My exam

ples will use SoundBlaster specific configs. If you have a different type o

f SoundCard, or if your card does not work after using my examples, read th

e LINT file for hints with your card. To get to the Sound Driver part of th

e LINT file, do this:

a. cd /usr/src/sys/i386/conf/

If you do not have this directory, then you do not have your kernel sources

. Back up a page and check for CVSUP information.

b. Read the file LINT, searching for the line:

# Audio drivers: `snd', `sb', `pas', `gus', `pca'

This is the first line of the Audio Drivers section.

2. Edit your kernel config file and add these options:

# Controls all sound devices

# snd: Voxware sound support code

controller      snd0

# sb: SoundBlaster PCM - SoundBlaster, SB Pro, SB16, ProAudioSpectrum

device sb0      at isa? port 0x220 irq 5 drq 1 vector sbintr

# sbxvi: SoundBlaster 16

device sbxvi0   at isa? drq 5 conflicts

# sbmidi: SoundBlaster 16 MIDI interface

device sbmidi0  at isa? port 0x330

# opl: Yamaha OPL-2 and OPL-3 FM - SB, SB Pro, SB 16, ProAudioSpectrum

device opl0     at isa? port 0x388

Note that if you are using a GUS card, you will have to experiment. Find th

e gus0 entries in LINT and use them. First you will need to determine wheth

er yourGUS card has 1 or 2 DMA channels. Use the 'device gus0' line in plac

e of the 'device sb0' line. Remove the SoundBlaster options which you won't

 need.

3. Create the snd0 device.

# cd /dev

# ./MAKEDEV snd0

4. Remake your kernel and Reboot.

When you are done with this, you will need to remake your kernel, install t

he new kernel and reboot your system.

5. Test your /dev/audio.

Grab this ftp://flag.blackened.net/incoming/sounds/sorrydave.au

Try to play it through /dev/audio:

# cat ./sorrydave.au > /dev/audio

Did you hear anything? Were your speakers on? Were your Port and IRQ/DRQ se

ttings correct? These things may need to be tweaked for your particular set

tings.

FreeBSD for the Lazy and Hopeless

--

※ Origin: 笑 书 亭 <bbs.zd.dhs.org> 

◆ From: 210.32.151.168

--

※ 转载:.BBS 荔园晨风站 bbs.szu.edu.cn.[FROM: 192.168.1.144]

--

※ 转寄:.BBS 荔园晨风站 bbs.szu.edu.cn.[FROM: 202.96.134.135]

--
☆ 来源:.哈工大紫丁香 bbs.hit.edu.cn.[FROM: bin@mtlab.hit.edu.cn]
[百宝箱] [返回首页] [上级目录] [根目录] [返回顶部] [刷新] [返回]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:2.217毫秒