1998-08-09 19:42:53 +00:00
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 1998, Luigi Rizzo
|
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.\"
|
1999-08-28 00:22:10 +00:00
|
|
|
.\" $FreeBSD$
|
1998-08-09 19:42:53 +00:00
|
|
|
.\"
|
|
|
|
.Dd June 3, 1998
|
1999-11-15 23:14:32 +00:00
|
|
|
.Dt PCM 4
|
1998-08-09 19:42:53 +00:00
|
|
|
.Os FreeBSD
|
|
|
|
.Sh NAME
|
|
|
|
.Nm pcm
|
2000-01-15 06:25:09 +00:00
|
|
|
.Nd FreeBSD PCM audio device driver
|
1998-08-09 19:42:53 +00:00
|
|
|
.Sh SYNOPSIS
|
2000-01-15 06:25:09 +00:00
|
|
|
For a card with bridge driver support, and a PnP card:
|
2000-01-23 15:04:20 +00:00
|
|
|
.Cd "device pcm"
|
2000-01-15 06:25:09 +00:00
|
|
|
.Pp
|
|
|
|
For a card without bridge driver support, and a non-PnP card:
|
1999-05-20 09:56:18 +00:00
|
|
|
.Cd "device pcm0 at isa? port? irq 5 drq 1 flags 0x15"
|
1998-08-09 19:42:53 +00:00
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
2000-02-08 21:32:12 +00:00
|
|
|
.Nm
|
2000-03-01 14:50:24 +00:00
|
|
|
driver provides support for PCM audio play and capture.
|
|
|
|
This driver
|
2000-01-15 06:25:09 +00:00
|
|
|
also supports various PCI and WSS/MSS compatible ISA sound cards, and
|
2000-03-01 14:50:24 +00:00
|
|
|
AC97 mixer.
|
|
|
|
True full duplex operation is available on most cards.
|
2000-01-15 06:25:09 +00:00
|
|
|
.Pp
|
2000-02-08 21:32:12 +00:00
|
|
|
If your sound card is supported by a bridge driver,
|
|
|
|
.Nm
|
|
|
|
driver works
|
|
|
|
in conjunction with the bridge driver.
|
1998-08-09 19:42:53 +00:00
|
|
|
.Pp
|
|
|
|
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.
|
|
|
|
.Pp
|
|
|
|
The driver works best with WSS/MSS cards, which have a very clean
|
2000-03-01 14:50:24 +00:00
|
|
|
architecture and an orthogonal set of features.
|
|
|
|
They also happen to be
|
1998-08-09 19:42:53 +00:00
|
|
|
among the cheapest audio cards on the market.
|
|
|
|
.Pp
|
|
|
|
The driver does its best to recognize the installed harware and drive
|
|
|
|
it correctly, so that you don't have to give too many details in the
|
2000-03-01 14:50:24 +00:00
|
|
|
kernel config files.
|
|
|
|
For PCI and ISA PnP cards this is actually easy
|
|
|
|
since they identify themselves.
|
|
|
|
For legacy ISA cards, the driver looks
|
2000-02-08 21:32:12 +00:00
|
|
|
for MSS cards at addresses 0x530 and 0x604 (obviously, unless overridden
|
2000-01-15 06:25:09 +00:00
|
|
|
in the kernel config file by specifying an address).
|
1998-08-09 19:42:53 +00:00
|
|
|
|
|
|
|
.Sh IOCTL
|
|
|
|
The driver supports most of the Voxware ioctls(), and most
|
|
|
|
applications work unmodified (including popular mpeg players and linux
|
|
|
|
binaries). A few
|
|
|
|
differences exist (the most important one is the ability to use
|
|
|
|
memory-mapped access to the audio buffers). As a consequence, some
|
|
|
|
applications may need to be recompiled with a slightly modified
|
2000-01-15 06:25:09 +00:00
|
|
|
audio module. See /usr/include/sys/soundcard.h for a complete
|
1998-08-09 19:42:53 +00:00
|
|
|
list of the supported ioctls.
|
|
|
|
|
|
|
|
.Sh SUPPORTED CARDS
|
|
|
|
.Pp
|
2000-03-01 14:50:24 +00:00
|
|
|
Below we include a list of supported codecs/cards.
|
|
|
|
If your sound card
|
2000-01-15 06:25:09 +00:00
|
|
|
is not listed here, it may be supported by a bridge driver.
|
1998-08-09 19:42:53 +00:00
|
|
|
|
|
|
|
.Bl -tag -width 2m % begin list
|
2000-01-15 06:25:09 +00:00
|
|
|
.It CS4237, CS4236, CS4232, CS4231 (ISA)
|
1998-08-09 19:42:53 +00:00
|
|
|
.Pp
|
|
|
|
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.
|
|
|
|
.Pp
|
|
|
|
The CS4232 is reported as buggy in the Voxware documentation but
|
2000-03-01 14:50:24 +00:00
|
|
|
I am not sure if this is true.
|
|
|
|
On one of my Intel motherboards,
|
1998-08-09 19:42:53 +00:00
|
|
|
capture does not work simply because the capture DMA channel is
|
|
|
|
not wired to the ISA DMA controller.
|
|
|
|
|
2000-01-15 06:25:09 +00:00
|
|
|
.It Yamaha OPL-SAx (ISA)
|
1998-08-09 19:42:53 +00:00
|
|
|
.Pp
|
2000-03-01 14:50:24 +00:00
|
|
|
Works perfectly in all modes.
|
|
|
|
This chip is used in several PnP cards,
|
1998-08-09 19:42:53 +00:00
|
|
|
but also (in non-PnP mode) on motherboards and laptops (e.g. the
|
|
|
|
Toshiba Libretto).
|
|
|
|
|
2000-01-15 06:25:09 +00:00
|
|
|
.It OPTi931 (ISA)
|
1998-08-09 19:42:53 +00:00
|
|
|
.Pp
|
|
|
|
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 formats uses U8 format internally because of
|
|
|
|
a bug in the chip.
|
|
|
|
|
2000-01-15 06:25:09 +00:00
|
|
|
.It Trident 4DWave DX/NX (PCI)
|
1998-08-09 19:42:53 +00:00
|
|
|
.Pp
|
2000-01-15 06:25:09 +00:00
|
|
|
.It ENSONIQ AudioPCI ES1370/1371 (PCI)
|
1998-08-09 19:42:53 +00:00
|
|
|
.Pp
|
2000-01-15 06:25:09 +00:00
|
|
|
Creative Labs SoundBlaster PCI is supported as well.
|
1998-08-09 19:42:53 +00:00
|
|
|
|
2000-01-15 06:25:09 +00:00
|
|
|
.It NeoMagic 256AV/ZX (PCI)
|
|
|
|
.Pp
|
1998-08-09 19:42:53 +00:00
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
.Sh DIAGNOSTICS AND TROUBLESHOOTING
|
|
|
|
.Bl -tag -width 2m
|
2000-01-15 06:25:09 +00:00
|
|
|
.It ac97: dac not ready
|
|
|
|
AC97 codec is not likely to be accompanied with the sound card.
|
1998-08-09 19:42:53 +00:00
|
|
|
|
2000-01-15 06:25:09 +00:00
|
|
|
.It unsupported subdevice XX
|
|
|
|
A device node is not created properly.
|
1998-08-09 19:42:53 +00:00
|
|
|
|
|
|
|
.El
|
|
|
|
.Sh BUGS
|
2000-01-15 06:25:09 +00:00
|
|
|
Some features of your cards (e.g. global volume control) might not
|
1998-08-09 19:42:53 +00:00
|
|
|
be supported on all devices.
|
|
|
|
.Sh HISTORY
|
|
|
|
The
|
2000-02-08 21:32:12 +00:00
|
|
|
.Nm
|
1998-08-09 19:42:53 +00:00
|
|
|
device driver first appeared in
|
2000-02-08 21:32:12 +00:00
|
|
|
.Fx 2.2.6 ,
|
|
|
|
rewritten in
|
|
|
|
.Fx 4.0 .
|
2000-01-15 06:25:09 +00:00
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr sbc 4
|
|
|
|
.Xr gusc 4
|
|
|
|
.Xr csa 4
|
1999-08-15 10:48:36 +00:00
|
|
|
.Sh AUTHORS
|
|
|
|
.An Luigi Rizzo Aq luigi@iet.unipi.it
|
2000-01-15 06:25:09 +00:00
|
|
|
initially wrote the .Nm device driver and this manual page.
|
|
|
|
.An Cameron Grant Aq gandalf@vilnya.demon.co.uk
|
|
|
|
totally revised the device driver.
|
|
|
|
.An Seigo Tanimura Aq tanimura@r.dl.itc.u-tokyo.ac.jp
|
|
|
|
revised this manual page.
|