Deleted Added
full compact
pcm.4 (50846) pcm.4 (53200)
1.\"
2.\" Copyright (c) 1998, Luigi Rizzo
3.\" All rights reserved.
4.\"
5.\" Redistribution and use in source and binary forms, with or without
6.\" modification, are permitted provided that the following conditions
7.\" are met:
8.\" 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24.\" SUCH DAMAGE.
25.\"
1.\"
2.\" Copyright (c) 1998, Luigi Rizzo
3.\" All rights reserved.
4.\"
5.\" Redistribution and use in source and binary forms, with or without
6.\" modification, are permitted provided that the following conditions
7.\" are met:
8.\" 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24.\" SUCH DAMAGE.
25.\"
26.\" $FreeBSD: head/share/man/man4/pcm.4 50846 1999-09-03 15:11:43Z sheldonh $
26.\" $FreeBSD: head/share/man/man4/pcm.4 53200 1999-11-15 23:14:32Z phantom $
27.\"
28.Dd June 3, 1998
27.\"
28.Dd June 3, 1998
29.Dt PCM 4 i386
29.Dt PCM 4
30.Os FreeBSD
31.Sh NAME
32.Nm pcm
33.Nd FreeBSD audio device driver
34.Sh SYNOPSIS
35.Cd "device pcm0 at isa? port? irq 5 drq 1 flags 0x15"
36.Sh DESCRIPTION
37The

--- 5 unchanged lines hidden (view full) ---

43.Pp
44Apart from the usual parameters, the flags field is used to specify
45the secondary DMA channel (generally used for capture in full duplex
46cards). Flags are set to 0 for cards not using a secondary DMA
47channel, or to 0x10 + C to specify channel C.
48.Pp
49PnP audio cards are also supported using the
50.Nm pnp
30.Os FreeBSD
31.Sh NAME
32.Nm pcm
33.Nd FreeBSD audio device driver
34.Sh SYNOPSIS
35.Cd "device pcm0 at isa? port? irq 5 drq 1 flags 0x15"
36.Sh DESCRIPTION
37The

--- 5 unchanged lines hidden (view full) ---

43.Pp
44Apart from the usual parameters, the flags field is used to specify
45the secondary DMA channel (generally used for capture in full duplex
46cards). Flags are set to 0 for cards not using a secondary DMA
47channel, or to 0x10 + C to specify channel C.
48.Pp
49PnP audio cards are also supported using the
50.Nm pnp
51support which is available in FreeBSD starting from release 2.2.6.
51support which is available in
52.Fx
53starting from release 2.2.6.
52See the
53.Xr pnp 4
54manpage for more information. In particular, remember that unit
55numbers for (recognized)
56PnP cards are assigned after the legacy ISA devices, and that the
57actual resources (port, irq and drq) used by the driver are read from
58the PnP configuration and not from the "device pcm0" line.
59So, if you have the following line in your kernel config file:
60.Pp
61.Cd "device pcm0 ..."
62.Pp
54See the
55.Xr pnp 4
56manpage for more information. In particular, remember that unit
57numbers for (recognized)
58PnP cards are assigned after the legacy ISA devices, and that the
59actual resources (port, irq and drq) used by the driver are read from
60the PnP configuration and not from the "device pcm0" line.
61So, if you have the following line in your kernel config file:
62.Pp
63.Cd "device pcm0 ..."
64.Pp
63your first PnP audio card will be unit #1, i.e. it will be accessible
64as /dev/audio1, /dev/dsp1, etc.
65your first PnP audio card will be unit #1, i.e. it will be accessible as
66.Pa /dev/audio1 ,
67.Pa /dev/dsp1 ,
68etc.
65Many applications default to using /dev/audio, but appropriate
66symlinks will be created as a side-effect of the the following command:
67.Pp
68.Cd cd /dev
69.Cd ./MAKEDEV snd1
70.Pp
71The driver works best with WSS/MSS cards, which have a very clean
72architecture and an orthogonal set of features. They also happen to be

--- 130 unchanged lines hidden ---
69Many applications default to using /dev/audio, but appropriate
70symlinks will be created as a side-effect of the the following command:
71.Pp
72.Cd cd /dev
73.Cd ./MAKEDEV snd1
74.Pp
75The driver works best with WSS/MSS cards, which have a very clean
76architecture and an orthogonal set of features. They also happen to be

--- 130 unchanged lines hidden ---