1.\" 2.\" Copyright (c) 2009-2011 Joel Dahl <joel@FreeBSD.org> 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.\" notice, this list of conditions and the following disclaimer. 10.\" 2. Redistributions in binary form must reproduce the above copyright 11.\" notice, this list of conditions and the following disclaimer in the 12.\" documentation and/or other materials provided with the distribution. 13.\" 14.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 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.Dd December 26, 2020 27.Dt SOUND 4 28.Os 29.Sh NAME 30.Nm sound , 31.Nm pcm , 32.Nm snd 33.Nd 34.Fx 35PCM audio device infrastructure 36.Sh SYNOPSIS 37To compile this driver into the kernel, place the following line in your 38kernel configuration file: 39.Bd -ragged -offset indent 40.Cd "device sound" 41.Ed 42.Sh DESCRIPTION 43The 44.Nm 45driver is the main component of the 46.Fx 47sound system. 48It works in conjunction with a bridge device driver on supported devices 49and provides PCM audio record and playback once it attaches. 50Each bridge device driver supports a specific set of audio chipsets and 51needs to be enabled together with the 52.Nm 53driver. 54PCI and ISA PnP audio devices identify themselves so users are usually not 55required to add anything to 56.Pa /boot/device.hints . 57.Pp 58Some of the main features of the 59.Nm 60driver are: multichannel audio, per-application 61volume control, dynamic mixing through virtual sound channels, true full 62duplex operation, bit perfect audio, rate conversion and low latency 63modes. 64.Pp 65The 66.Nm 67driver is enabled by default, along with several bridge device drivers. 68Those not enabled by default can be loaded during runtime with 69.Xr kldload 8 70or during boot via 71.Xr loader.conf 5 . 72The following bridge device drivers are available: 73.Pp 74.Bl -bullet -compact 75.It 76.Xr snd_ai2s 4 (enabled by default on powerpc) 77.It 78.Xr snd_als4000 4 79.It 80.Xr snd_atiixp 4 81.It 82.Xr snd_cmi 4 (enabled by default on amd64, i386) 83.It 84.Xr snd_cs4281 4 85.It 86.Xr snd_csa 4 (enabled by default on amd64, i386) 87.It 88.Xr snd_davbus 4 (enabled by default on powerpc) 89.It 90.Xr snd_emu10k1 4 91.It 92.Xr snd_emu10kx 4 (enabled by default on amd64, i386) 93.It 94.Xr snd_envy24 4 95.It 96.Xr snd_envy24ht 4 97.It 98.Xr snd_es137x 4 (enabled by default on amd64, i386) 99.It 100.Xr snd_fm801 4 101.It 102.Xr snd_hda 4 (enabled by default on amd64, i386) 103.It 104.Xr snd_hdspe 4 105.It 106.Xr snd_ich 4 (enabled by default on amd64, i386) 107.It 108.Xr snd_maestro3 4 109.It 110.Xr snd_neomagic 4 111.It 112.Xr snd_solo 4 113.It 114.Xr snd_spicds 4 115.It 116.Xr snd_uaudio 4 (enabled by default on amd64, i386, powerpc) 117.It 118.Xr snd_via8233 4 (enabled by default on amd64, i386) 119.It 120.Xr snd_via82c686 4 121.It 122.Xr snd_vibes 4 123.El 124.Pp 125Refer to the manual page for each bridge device driver for driver specific 126settings and information. 127.Ss Legacy Hardware 128For old legacy 129.Tn ISA 130cards, the driver looks for 131.Tn MSS 132cards at addresses 133.Dv 0x530 134and 135.Dv 0x604 . 136These values can be overridden in 137.Pa /boot/device.hints . 138Non-PnP sound cards require the following lines in 139.Xr device.hints 5 : 140.Bd -literal -offset indent 141hint.pcm.0.at="isa" 142hint.pcm.0.irq="5" 143hint.pcm.0.drq="1" 144hint.pcm.0.flags="0x0" 145.Ed 146.Pp 147Apart from the usual parameters, the flags field is used to specify 148the secondary 149.Tn DMA 150channel (generally used for capture in full duplex cards). 151Flags are set to 0 for cards not using a secondary 152.Tn DMA 153channel, or to 0x10 + C to specify channel C. 154.Ss Boot Variables 155In general, the module 156.Pa snd_foo 157corresponds to 158.Cd "device snd_foo" 159and can be 160loaded by the boot 161.Xr loader 8 162via 163.Xr loader.conf 5 164or from the command line using the 165.Xr kldload 8 166utility. 167Options which can be specified in 168.Pa /boot/loader.conf 169include: 170.Bl -tag -width ".Va snd_driver_load" -offset indent 171.It Va snd_driver_load 172.Pq Dq Li NO 173If set to 174.Dq Li YES , 175this option loads all available drivers. 176.It Va snd_hda_load 177.Pq Dq Li NO 178If set to 179.Dq Li YES , 180only the Intel High Definition Audio bridge device driver and dependent 181modules will be loaded. 182.It Va snd_foo_load 183.Pq Dq Li NO 184If set to 185.Dq Li YES , 186load driver for card/chipset foo. 187.El 188.Pp 189To define default values for the different mixer channels, 190set the channel to the preferred value using hints, e.g.: 191.Va hint.pcm.0.line Ns = Ns Qq Li 0 . 192This will mute the input channel per default. 193.Ss Multichannel Audio 194Multichannel audio, popularly referred to as 195.Dq surround sound 196is supported and enabled by default. 197The FreeBSD multichannel matrix processor supports up to 18 interleaved 198channels, but the limit is currently set to 8 channels (as commonly used 199for 7.1 surround sound). 200The internal matrix mapping can handle reduction, expansion or 201re-routing of channels. 202This provides a base interface for related multichannel 203.Fn ioctl 204support. 205Multichannel audio works both with and without 206.Tn VCHANs . 207.Pp 208Most bridge device drivers are still missing multichannel matrixing 209support, but in most cases this should be trivial to implement. 210Use the 211.Va dev.pcm.%d.[play|rec].vchanformat 212.Xr sysctl 8 213to adjust the number of channels used. 214The current multichannel interleaved structure and arrangement was 215implemented by inspecting various popular UNIX applications. 216There were no single standard, so much care has been taken to try 217to satisfy each possible scenario, despite the fact that each 218application has its own conflicting standard. 219.Ss EQ 220The Parametric Software Equalizer (EQ) enables the use of 221.Dq tone 222controls (bass and treble). 223Commonly used for ear-candy or frequency compensation due to the vast 224difference in hardware quality. 225EQ is disabled by default, but can be enabled with the 226.Va hint.pcm.%d.eq 227tunable. 228.Ss VCHANs 229Each device can optionally support more playback and recording channels 230than physical hardware provides by using 231.Dq virtual channels 232or 233.Tn VCHANs . 234.Tn VCHAN 235options can be configured via the 236.Xr sysctl 8 237interface but can only be manipulated while the device is inactive. 238.Ss VPC 239FreeBSD supports independent and individual volume controls for each active 240application, without touching the master 241.Nm 242volume. 243This is sometimes referred to as Volume Per Channel (VPC). 244The 245.Tn VPC 246feature is enabled by default. 247.Ss Loader Tunables 248The following loader tunables are used to set driver configuration at the 249.Xr loader 8 250prompt before booting the kernel, or they can be stored in 251.Pa /boot/loader.conf 252in order to automatically set them before booting the kernel. 253It is also possible to use 254.Xr kenv 1 255to change these tunables before loading the 256.Nm 257driver. 258The following tunables can not be changed during runtime using 259.Xr sysctl 8 . 260.Bl -tag -width indent 261.It Va hint.pcm.%d.eq 262Set to 1 or 0 to explicitly enable (1) or disable (0) the equalizer. 263Requires a driver reload if changed. 264Enabling this will make bass and treble controls appear in mixer applications. 265This tunable is undefined by default. 266Equalizing is disabled by default. 267.It Va hint.pcm.%d.vpc 268Set to 1 or 0 to explicitly enable (1) or disable (0) the 269.Tn VPC 270feature. 271This tunable is undefined by default. 272.Tn VPC 273is however enabled by default. 274.El 275.Ss Runtime Configuration 276There are a number of 277.Xr sysctl 8 278variables available which can be modified during runtime. 279These values can also be stored in 280.Pa /etc/sysctl.conf 281in order to automatically set them during the boot process. 282.Va hw.snd.* 283are global settings and 284.Va dev.pcm.* 285are device specific. 286.Bl -tag -width indent 287.It Va hw.snd.compat_linux_mmap 288Linux 289.Xr mmap 2 290compatibility. 291The following values are supported (default is 0): 292.Bl -tag -width 2n 293.It -1 294Force disabling/denying PROT_EXEC 295.Xr mmap 2 296requests. 297.It 0 298Auto detect proc/ABI type, allow 299.Xr mmap 2 300for Linux applications, and deny for everything else. 301.It 1 302Always allow PROT_EXEC page mappings. 303.El 304.It Va hw.snd.default_auto 305Automatically assign the default sound unit. 306The following values are supported (default is 1): 307.Bl -tag -width 2n 308.It 0 309Do not assign the default sound unit automatically. 310.It 1 311Use the best available sound device based on playing and recording 312capabilities of the device. 313.It 2 314Use the most recently attached device. 315.El 316.It Va hw.snd.default_unit 317Default sound card for systems with multiple sound cards. 318When using 319.Xr devfs 5 , 320the default device for 321.Pa /dev/dsp . 322Equivalent to a symlink from 323.Pa /dev/dsp 324to 325.Pa /dev/dsp Ns Va ${hw.snd.default_unit} . 326.It Va hw.snd.feeder_eq_exact_rate 327Only certain rates are allowed for precise processing. 328The default behavior is however to allow sloppy processing for all rates, 329even the unsupported ones. 330Enable to toggle this requirement and only allow processing for supported 331rates. 332.It Va hw.snd.feeder_rate_max 333Maximum allowable sample rate. 334.It Va hw.snd.feeder_rate_min 335Minimum allowable sample rate. 336.It Va hw.snd.feeder_rate_polyphase_max 337Adjust to set the maximum number of allowed polyphase entries during the 338process of building resampling filters. 339Disabling polyphase resampling has the benefit of reducing memory usage, at 340the expense of slower and lower quality conversion. 341Only applicable when the SINC interpolator is used. 342Default value is 183040. 343Set to 0 to disable polyphase resampling. 344.It Va hw.snd.feeder_rate_quality 345Sample rate converter quality. 346Default value is 1, linear interpolation. 347Available options include: 348.Bl -tag -width 2n 349.It 0 350Zero Order Hold, ZOH. 351Very fast, but with poor quality. 352.It 1 353Linear interpolation. 354Fast, quality is subject to personal preference. 355Technically the quality is poor however, due to the lack of anti-aliasing 356filtering. 357.It 2 358Bandlimited SINC interpolator. 359Implements polyphase banking to boost the conversion speed, at the cost of 360memory usage, with multiple high quality polynomial interpolators to improve 361the conversion accuracy. 362100% fixed point, 64bit accumulator with 32bit coefficients and high precision 363sample buffering. 364Quality values are 100dB stopband, 8 taps and 85% bandwidth. 365.It 3 366Continuation of the bandlimited SINC interpolator, with 100dB stopband, 36 367taps and 90% bandwidth as quality values. 368.It 4 369Continuation of the bandlimited SINC interprolator, with 100dB stopband, 164 370taps and 97% bandwidth as quality values. 371.El 372.It Va hw.snd.feeder_rate_round 373Sample rate rounding threshold, to avoid large prime division at the 374cost of accuracy. 375All requested sample rates will be rounded to the nearest threshold value. 376Possible values range between 0 (disabled) and 500. 377Default is 25. 378.It Va hw.snd.latency 379Configure the buffering latency. 380Only affects applications that do not explicitly request 381blocksize / fragments. 382This tunable provides finer granularity than the 383.Va hw.snd.latency_profile 384tunable. 385Possible values range between 0 (lowest latency) and 10 (highest latency). 386.It Va hw.snd.latency_profile 387Define sets of buffering latency conversion tables for the 388.Va hw.snd.latency 389tunable. 390A value of 0 will use a low and aggressive latency profile which can result 391in possible underruns if the application cannot keep up with a rapid irq 392rate, especially during high workload. 393The default value is 1, which is considered a moderate/safe latency profile. 394.It Va hw.snd.maxautovchans 395Global 396.Tn VCHAN 397setting that only affects devices with at least one playback or recording channel available. 398The sound system will dynamically create up to this many 399.Tn VCHANs . 400Set to 401.Dq 0 402if no 403.Tn VCHANs 404are desired. 405Maximum value is 256. 406.It Va hw.snd.report_soft_formats 407Controls the internal format conversion if it is 408available transparently to the application software. 409When disabled or not available, the application will 410only be able to select formats the device natively supports. 411.It Va hw.snd.report_soft_matrix 412Enable seamless channel matrixing even if the hardware does not support it. 413Makes it possible to play multichannel streams even with a simple stereo 414sound card. 415.It Va hw.snd.verbose 416Level of verbosity for the 417.Pa /dev/sndstat 418device. 419Higher values include more output and the highest level, 420four, should be used when reporting problems. 421Other options include: 422.Bl -tag -width 2n 423.It 0 424Installed devices and their allocated bus resources. 425.It 1 426The number of playback, record, virtual channels, and 427flags per device. 428.It 2 429Channel information per device including the channel's 430current format, speed, and pseudo device statistics such as 431buffer overruns and buffer underruns. 432.It 3 433File names and versions of the currently loaded sound modules. 434.It 4 435Various messages intended for debugging. 436.El 437.It Va hw.snd.vpc_0db 438Default value for 439.Nm 440volume. 441Increase to give more room for attenuation control. 442Decrease for more amplification, with the possible cost of sound clipping. 443.It Va hw.snd.vpc_autoreset 444When a channel is closed the channel volume will be reset to 0db. 445This means that any changes to the volume will be lost. 446Enabling this will preserve the volume, at the cost of possible confusion 447when applications tries to re-open the same device. 448.It Va hw.snd.vpc_mixer_bypass 449The recommended way to use the 450.Tn VPC 451feature is to teach applications to use 452the correct 453.Fn ioctl : 454.Dv SNDCTL_DSP_GETPLAYVOL, SNDCTL_DSP_SETPLAYVOL, 455.Dv SNDCTL_DSP_SETRECVOL, SNDCTL_DSP_SETRECVOL. 456This is however not always possible. 457Enable this to allow applications to use their own existing mixer logic 458to control their own channel volume. 459.It Va hw.snd.vpc_reset 460Enable to restore all channel volumes back to the default value of 0db. 461.It Va dev.pcm.%d.bitperfect 462Enable or disable bitperfect mode. 463When enabled, channels will skip all dsp processing, such as channel 464matrixing, rate converting and equalizing. 465The pure 466.Nm 467stream will be fed directly to the hardware. 468If 469.Tn VCHANs 470are enabled, the bitperfect mode will use the 471.Tn VCHAN 472format/rate as the definitive format/rate target. 473The recommended way to use bitperfect mode is to disable 474.Tn VCHANs 475and enable this sysctl. 476Default is disabled. 477.It Va dev.pcm.%d.[play|rec].vchans 478The current number of 479.Tn VCHANs 480allocated per device. 481This can be set to preallocate a certain number of 482.Tn VCHANs . 483Setting this value to 484.Dq 0 485will disable 486.Tn VCHANs 487for this device. 488.It Va dev.pcm.%d.[play|rec].vchanformat 489Format for 490.Tn VCHAN 491mixing. 492All playback paths will be converted to this format before the mixing 493process begins. 494By default only 2 channels are enabled. 495Available options include: 496.Bl -tag -width 2n 497.It s16le:1.0 498Mono. 499.It s16le:2.0 500Stereo, 2 channels (left, right). 501.It s16le:2.1 5023 channels (left, right, LFE). 503.It s16le:3.0 5043 channels (left, right, rear center). 505.It s16le:4.0 506Quadraphonic, 4 channels (front/rear left and right). 507.It s16le:4.1 5085 channels (4.0 + LFE). 509.It s16le:5.0 5105 channels (4.0 + center). 511.It s16le:5.1 5126 channels (4.0 + center + LFE). 513.It s16le:6.0 5146 channels (4.0 + front/rear center). 515.It s16le:6.1 5167 channels (6.0 + LFE). 517.It s16le:7.1 5188 channels (4.0 + center + LFE + left and right side). 519.El 520.It Va dev.pcm.%d.[play|rec].vchanmode 521.Tn VCHAN 522format/rate selection. 523Available options include: 524.Bl -tag -width 2n 525.It fixed 526Channel mixing is done using fixed format/rate. 527Advanced operations such as digital passthrough will not work. 528Can be considered as a 529.Dq legacy 530mode. 531This is the default mode for hardware channels which lack support for digital 532formats. 533.It passthrough 534Channel mixing is done using fixed format/rate, but advanced operations such 535as digital passthrough also work. 536All channels will produce sound as usual until a digital format playback is 537requested. 538When this happens all other channels will be muted and the latest incoming 539digital format will be allowed to pass through undisturbed. 540Multiple concurrent digital streams are supported, but the latest stream will 541take precedence and mute all other streams. 542.It adaptive 543Works like the 544.Dq passthrough 545mode, but is a bit smarter, especially for 546multiple 547.Nm 548channels with different format/rate. 549When a new channel is about to start, the entire list of virtual channels will 550be scanned, and the channel with the best format/rate (usually the 551highest/biggest) will be selected. 552This ensures that mixing quality depends on the best channel. 553The downside is that the hardware DMA mode needs to be restarted, which may 554cause annoying pops or clicks. 555.El 556.It Va dev.pcm.%d.[play|rec].vchanrate 557Sample rate speed for 558.Tn VCHAN 559mixing. 560All playback paths will be converted to this sample rate before the mixing 561process begins. 562.It Va dev.pcm.%d.polling 563Experimental polling mode support where the driver operates by querying the 564device state on each tick using a 565.Xr callout 9 566mechanism. 567Disabled by default and currently only available for a few device drivers. 568.El 569.Ss Recording Channels 570On devices that have more than one recording source (ie: mic and line), 571there is a corresponding 572.Pa /dev/dsp%d.r%d 573device. 574The 575.Xr mixer 8 576utility can be used to start and stop recording from an specific device. 577.Ss Statistics 578Channel statistics are only kept while the device is open. 579So with situations involving overruns and underruns, consider the output 580while the errant application is open and running. 581.Ss IOCTL Support 582The driver supports most of the 583.Tn OSS 584.Fn ioctl 585functions, and most applications work unmodified. 586A few differences exist, while memory mapped playback is 587supported natively and in 588.Tn Linux 589emulation, memory mapped recording is 590not due to 591.Tn VM 592system design. 593As a consequence, some applications may need to be recompiled 594with a slightly modified audio module. 595See 596.In sys/soundcard.h 597for a complete list of the supported 598.Fn ioctl 599functions. 600.Sh FILES 601The 602.Nm 603drivers may create the following 604device nodes: 605.Pp 606.Bl -tag -width ".Pa /dev/audio%d.%d" -compact 607.It Pa /dev/audio%d.%d 608Sparc-compatible audio device. 609.It Pa /dev/dsp%d.%d 610Digitized voice device. 611.It Pa /dev/dspW%d.%d 612Like 613.Pa /dev/dsp , 614but 16 bits per sample. 615.It Pa /dev/dsp%d.p%d 616Playback channel. 617.It Pa /dev/dsp%d.r%d 618Record channel. 619.It Pa /dev/dsp%d.vp%d 620Virtual playback channel. 621.It Pa /dev/dsp%d.vr%d 622Virtual recording channel. 623.It Pa /dev/sndstat 624Current 625.Nm 626status, including all channels and drivers. 627.El 628.Pp 629The first number in the device node 630represents the unit number of the 631.Nm 632device. 633All 634.Nm 635devices are listed 636in 637.Pa /dev/sndstat . 638Additional messages are sometimes recorded when the 639device is probed and attached, these messages can be viewed with the 640.Xr dmesg 8 641utility. 642.Pp 643The above device nodes are only created on demand through the dynamic 644.Xr devfs 5 645clone handler. 646Users are strongly discouraged to access them directly. 647For specific sound card access, please instead use 648.Pa /dev/dsp 649or 650.Pa /dev/dsp%d . 651.Sh EXAMPLES 652Use the sound metadriver to load all 653.Nm 654bridge device drivers at once 655(for example if it is unclear which the correct driver to use is): 656.Pp 657.Dl kldload snd_driver 658.Pp 659Load a specific bridge device driver, in this case the Intel 660High Definition Audio driver: 661.Pp 662.Dl kldload snd_hda 663.Pp 664Check the status of all detected 665.Nm 666devices: 667.Pp 668.Dl cat /dev/sndstat 669.Pp 670Change the default sound device, in this case to the second device. 671This is handy if there are multiple 672.Nm 673devices available: 674.Pp 675.Dl sysctl hw.snd.default_unit=1 676.Sh DIAGNOSTICS 677.Bl -diag 678.It pcm%d:play:%d:dsp%d.p%d: play interrupt timeout, channel dead 679The hardware does not generate interrupts to serve incoming (play) 680or outgoing (record) data. 681.It unsupported subdevice XX 682A device node is not created properly. 683.El 684.Sh SEE ALSO 685.Xr snd_ai2s 4 , 686.Xr snd_als4000 4 , 687.Xr snd_atiixp 4 , 688.Xr snd_cmi 4 , 689.Xr snd_cs4281 4 , 690.Xr snd_csa 4 , 691.Xr snd_davbus 4 , 692.Xr snd_emu10k1 4 , 693.Xr snd_emu10kx 4 , 694.Xr snd_envy24 4 , 695.Xr snd_envy24ht 4 , 696.Xr snd_es137x 4 , 697.Xr snd_fm801 4 , 698.Xr snd_hda 4 , 699.Xr snd_hdspe 4 , 700.Xr snd_ich 4 , 701.Xr snd_maestro3 4 , 702.Xr snd_neomagic 4 , 703.Xr snd_solo 4 , 704.Xr snd_spicds 4 , 705.Xr snd_t4dwave 4 , 706.Xr snd_uaudio 4 , 707.Xr snd_via8233 4 , 708.Xr snd_via82c686 4 , 709.Xr snd_vibes 4 , 710.Xr devfs 5 , 711.Xr device.hints 5 , 712.Xr loader.conf 5 , 713.Xr dmesg 8 , 714.Xr kldload 8 , 715.Xr mixer 8 , 716.Xr sysctl 8 717.Rs 718.%T "Cookbook formulae for audio EQ biquad filter coefficients (Audio-EQ-Cookbook.txt), by Robert Bristow-Johnson" 719.%U "https://www.musicdsp.org/en/latest/Filters/197-rbj-audio-eq-cookbook.html" 720.Re 721.Rs 722.%T "Julius O'Smith's Digital Audio Resampling" 723.%U "http://ccrma.stanford.edu/~jos/resample/" 724.Re 725.Rs 726.%T "Polynomial Interpolators for High-Quality Resampling of Oversampled Audio, by Olli Niemitalo" 727.%U "http://yehar.com/blog/wp-content/uploads/2009/08/deip.pdf" 728.Re 729.Rs 730.%T "The OSS API" 731.%U "http://www.opensound.com/pguide/oss.pdf" 732.Re 733.Sh HISTORY 734The 735.Nm 736device driver first appeared in 737.Fx 2.2.6 738as 739.Nm pcm , 740written by 741.An Luigi Rizzo . 742It was later 743rewritten in 744.Fx 4.0 745by 746.An Cameron Grant . 747The API evolved from the VOXWARE 748standard which later became OSS standard. 749.Sh AUTHORS 750.An -nosplit 751.An Luigi Rizzo Aq Mt luigi@iet.unipi.it 752initially wrote the 753.Nm pcm 754device driver and this manual page. 755.An Cameron Grant Aq Mt gandalf@vilnya.demon.co.uk 756later revised the device driver for 757.Fx 4.0 . 758.An Seigo Tanimura Aq Mt tanimura@r.dl.itc.u-tokyo.ac.jp 759revised this manual page. 760It was then rewritten for 761.Fx 5.2 . 762.Sh BUGS 763Some features of your sound card (e.g., global volume control) might not 764be supported on all devices. 765