1.\" $NetBSD: guspnp.4,v 1.14 2005/06/22 04:30:08 kent Exp $ 2.\" 3.\" Copyright (c) 1999 The NetBSD Foundation, Inc. 4.\" All rights reserved. 5.\" 6.\" This code is derived from software contributed to The NetBSD Foundation 7.\" by Kari Mettinen. 8.\" 9.\" Redistribution and use in source and binary forms, with or without 10.\" modification, are permitted provided that the following conditions 11.\" are met: 12.\" 1. Redistributions of source code must retain the above copyright 13.\" notice, this list of conditions and the following disclaimer. 14.\" 2. Redistributions in binary form must reproduce the above copyright 15.\" notice, this list of conditions and the following disclaimer in the 16.\" documentation and/or other materials provided with the distribution. 17.\" 3. All advertising materials mentioning features or use of this software 18.\" must display the following acknowledgement: 19.\" This product includes software developed by the NetBSD 20.\" Foundation, Inc. and its contributors. 21.\" 4. Neither the name of The NetBSD Foundation nor the names of its 22.\" contributors may be used to endorse or promote products derived 23.\" from this software without specific prior written permission. 24.\" 25.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 26.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 27.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 28.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 29.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 30.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 31.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 32.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 33.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 34.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 35.\" POSSIBILITY OF SUCH DAMAGE. 36.\" 37.Dd June 22, 2005 38.Dt GUSPNP 4 39.Sh NAME 40.Nm guspnp 41.Nd Am78C201 audio device driver 42.Sh SYNOPSIS 43.Cd "guspnp* at isapnp?" 44.Cd "audio* at audiobus?" 45.Pp 46There should be no limit caused by the driver on the number of drivers 47or cards active in the system. 48.Sh DESCRIPTION 49The 50.Nm guspnp 51driver provides support for audio subsystems using the Interwave (Am78C20x) 52family of ICs, usually the Gravis Ultrasound Plug and Play. 53Unlike the 54.Nm gus 55driver guspnp driver does not require any local memory for the IC, but uses 56the codec for both playback and recording. 57The 58.Nm guspnp 59driver can simultaneously playback and record 8- and 16-bit samples at 60frequencies from 5.51kHz to 48kHz. 61.Pp 62The 63.Nm guspnp 64driver relies on 65.Nm isapnp 66to allocate suitable resources for it. 67This version of the driver only 68uses the first logical device of the five the Interwave IC has. 69The four unused 70logical devices are the ATAPI CD-ROM device, PnP Joystick device, legacy 71soundcard emulation device (SoundBlaster) and MIDI serial device. 72Support 73for at least ATAPI CD-ROM and Joystick is being worked on. 74This version of the driver will use 1 IRQ and 2 DRQs. 75.Sh HARDWARE 76Cards supported by the 77.Nm 78driver include: 79.Pp 80.Bl -item -offset indent 81.It 82.Tn Gravis 83Ultrasound PNP, and compatibles 84.El 85.Sh SEE ALSO 86.Xr audio 4 , 87.Xr gus 4 , 88.Xr isapnp 4 89.Sh REFERENCES 90Interwave(tm) IC Am78C201/202 Programmer's Guide Rev. 2. 1996. Advanced 91Micro Devices. 92.Sh HISTORY 93The 94.Nm guspnp 95driver appeared in 96.Nx 1.3 . 97.Sh AUTHORS 98.An Kari Mettinen Aq Kari.Mettinen@helsinki.fi , 99University of Helsinki. 100.Sh BUGS 101Sometimes you can cause a hiss on either left or right channel, or both. 102You can usually make it disappear by playing random data, however this 103might not be a very nice thing to your audio equipment, but it is the only 104way I have found out to be effective. 105.Pp 106Only the Codec is used in this version of the driver, therefore only 2 107channels are supported (left and right). Also sound quality is probably 108worse at lower kHz compared to playing through the synthesizer which does 109interpolation. 110.Pp 111If the implementation has a 'bad' oscillator, using frequencies 44.8kHz 112and 38.4kHz will result in incorrect playback frequency. The author has 113a GUS PnP Pro which displays this behavior. 114.Pp 115Other members of the Interwave family have not been tested and don't 116have the glue needed to make them work. Should someone need to implement it, 117not many changes in the existing code are needed. 118Output voltage control in 119register CFIG2 [7] should be set differently for some other members of the 120family. 121.Pp 122Other architectures than i386 haven't been tested. The bus_space abstraction 123has been used from the beginning, so it should work. 124