aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorChristos Margiolis <christos@FreeBSD.org>2024-04-05 10:32:32 +0000
committerChristos Margiolis <christos@FreeBSD.org>2024-04-05 10:33:41 +0000
commitc0d8f586299713f999b3b4757617a805774b03fa (patch)
tree537d6a15396a87012317e7520c05973ccaba1fb8 /share
parent365067e98e4e9deba18070f5ebd4e9eee7149b6d (diff)
downloadsrc-c0d8f586299713f999b3b4757617a805774b03fa.tar.gz
src-c0d8f586299713f999b3b4757617a805774b03fa.zip
Revert "sound: Get rid of snd_clone and use DEVFS_CDEVPRIV(9)"
This reverts commit dc831e93bad63f9faea09f1806a7733a40bff316. After several reports in the mailing lists, this commit breaks pulseaudio. Revert until the issue is resolved.
Diffstat (limited to 'share')
-rw-r--r--share/man/man4/pcm.453
1 files changed, 41 insertions, 12 deletions
diff --git a/share/man/man4/pcm.4 b/share/man/man4/pcm.4
index e406bd2c8343..17ac499e6bb3 100644
--- a/share/man/man4/pcm.4
+++ b/share/man/man4/pcm.4
@@ -23,7 +23,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd March 24, 2024
+.Dd January 10, 2024
.Dt SOUND 4
.Os
.Sh NAME
@@ -513,6 +513,14 @@ device state on each tick using a
mechanism.
Disabled by default and currently only available for a few device drivers.
.El
+.Ss Recording Channels
+On devices that have more than one recording source (ie: mic and line),
+there is a corresponding
+.Pa /dev/dsp%d.r%d
+device.
+The
+.Xr mixer 8
+utility can be used to start and stop recording from an specific device.
.Ss Statistics
Channel statistics are only kept while the device is open.
So with situations involving overruns and underruns, consider the output
@@ -534,24 +542,36 @@ functions.
.Sh FILES
The
.Nm
-drivers may create the following device nodes:
+drivers may create the following
+device nodes:
.Pp
-.Bl -tag -width ".Pa /dev/sndstat" -compact
-.It Pa /dev/dsp%d
-Audio device.
-The number represents the unit number of the device.
-.It Pa /dev/dsp
-Alias of
-.Pa /dev/dsp${hw.snd.default_unit} .
-Available only if
-.Pa hw.snd.basename_clone
-is set.
+.Bl -tag -width ".Pa /dev/audio%d.%d" -compact
+.It Pa /dev/audio%d.%d
+Sparc-compatible audio device.
+.It Pa /dev/dsp%d.%d
+Digitized voice device.
+.It Pa /dev/dspW%d.%d
+Like
+.Pa /dev/dsp ,
+but 16 bits per sample.
+.It Pa /dev/dsp%d.p%d
+Playback channel.
+.It Pa /dev/dsp%d.r%d
+Record channel.
+.It Pa /dev/dsp%d.vp%d
+Virtual playback channel.
+.It Pa /dev/dsp%d.vr%d
+Virtual recording channel.
.It Pa /dev/sndstat
Current
.Nm
status, including all channels and drivers.
.El
.Pp
+The first number in the device node
+represents the unit number of the
+.Nm
+device.
All
.Nm
devices are listed
@@ -561,6 +581,15 @@ Additional messages are sometimes recorded when the
device is probed and attached, these messages can be viewed with the
.Xr dmesg 8
utility.
+.Pp
+The above device nodes are only created on demand through the dynamic
+.Xr devfs 5
+clone handler.
+Users are strongly discouraged to access them directly.
+For specific sound card access, please instead use
+.Pa /dev/dsp
+or
+.Pa /dev/dsp%d .
.Sh EXAMPLES
Use the sound metadriver to load all
.Nm