|

楼主 |
发表于 2005-8-25 17:19:11
|
显示全部楼层
新驱动sound.ko主要的说明:
备注:
这个驱动代替了以前的snd_pcm.ko
SOUND(4) FreeBSD Kernel Interfaces Manual SOUND(4)
NAME
sound, pcm, snd -- FreeBSD PCM audio device infrastructure
SYNOPSIS
For a card with bridge driver support, and a PnP card:
device sound
For a card without bridge driver support, and a non-PnP card, the follow-
ing lines may be required in /boot/device.hints: 注:已实践
hint.pcm.0.at="isa"
hint.pcm.0.irq="5"
hint.pcm.0.drq="1"
hint.pcm.0.flags="0x0" 注:还试过0x10 ,还加过hint.pcm.0.port="0x52C" 抄的。
DESCRIPTION
Note: There exists some ambiguity in the naming at the moment (sound,
pcm, snd). It will be resolved soon by renaming device sound to device
snd, and doing associated changes.
The sound driver provides support for PCM audio play and capture. This
driver also supports various PCI, WSS/MSS compatible, ISA sound cards,
and AC97 mixer. Once the sound driver attaches, supported devices pro-
vide audio record and playback channels. The FreeBSD sound system pro-
vides dynamic mixing ``VCHAN'' and rate conversion ``soft formats''.
True full duplex operation is available on most cards.
If the sound card is supported by a bridge driver, the sound driver works
in conjunction with the bridge driver.
Apart from the usual parameters, the flags field is used to specify the
secondary DMA channel (generally used for capture in full duplex cards).
Flags are set to 0 for cards not using a secondary DMA channel, or to
0x10 + C to specify channel C.
The driver works best with WSS/MSS cards, which have a very clean archi-
tecture and an orthogonal set of features. They also happen to be among
the cheapest audio cards on the market.
The driver does its best to recognize the installed hardware and drive it
correctly so the user is not required to add several lines in
/boot/device.hints. For PCI and ISA PnP cards this is actually easy
since they identify themselves. For legacy ISA cards, the driver looks
for MSS cards at addresses 0x530 and 0x604 (unless overridden in
/boot/device.hints).
Supported Cards
Below we include a list of supported codecs/cards. If your sound card is
not listed here, it may be supported by a bridge driver.
CS4237, CS4236, CS4232, CS4231 (ISA)
All these cards work perfectly in full duplex using the MSS mode.
This chipset is used, among others, on the A/Open AW35 and AW32, on
some Intel motherboards, and (the CS4231) on some non-PnP cards.
The CS4232 is reported as buggy in the Voxware documentation but I am
not sure if this is true. On one of my Intel motherboards, capture
does not work simply because the capture DMA channel is not wired to
the ISA DMA controller.
Yamaha OPL-SAx (ISA)
Works perfectly in all modes. This chip is used in several PnP
cards, but also (in non-PnP mode) on motherboards and laptops (e.g.,
the Toshiba Libretto).
OPTi931 (ISA)
The chip is buggy, but the driver has many workarounds to make it
work in full duplex because for some time these were the only full
duplex cards I could find. U-law format uses U8 format internally
because of a bug in the chip.
Trident 4DWave DX/NX (PCI)
ENSONIQ AudioPCI ES1370/1371 (PCI)
Creative Labs SoundBlaster PCI is supported as well.
ESS Solo-1/1E (PCI)
NeoMagic 256AV/ZX (PCI)
补充一下:
hint.driver.unit.keyword=value
driver 是设备驱动程序名,unit 是设备驱动程序单位名,keyword 是 hint 关键字。关键字可以由以下选项组成:
at:指明设备所绑定的总线
port:指明所使用 I/O 的起始地址。
irq:指明所使用的中断请求号。
drq:指明 DMA channel 号。
maddr:指明设备占用的物理内存地址。
flags:给设备设置各种标志位。
disabled:如果设成 1,设备被禁用。 |
|