1.\" $NetBSD: guspnp.4,v 1.12 2001/10/28 16:28:39 jdolecek 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 October 5, 1997 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 guspnp?" 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 audiosubsystems using the Interwave (Am78C20x) 52family of ICs, usually the Gravis Ultrasound Plug and Play. Unlike the 53.Nm gus 54driver guspnp driver does not require any local memory for the IC, but uses 55the codec for both playback and recording. The 56.Nm guspnp 57driver can simultaneously playback and record 8- and 16-bit samples at 58frequencies from 5.51kHz to 48kHz. 59.Pp 60The 61.Nm guspnp 62driver relies on 63.Nm isapnp 64to allocate suitable resources for it. This version of the driver only 65uses the first logical device of 5 the interwave IC has. The 4 Unused 66logical devices are ATAPI CD-ROM device, PnP Joystick device, Legacy 67soundcard emulation device (SoundBlaster) and MIDI serial device. Support 68for at least ATAPI CD-ROM and Joystick is being worked on. 69This version of the driver will use 1 IRQ and 2 DRQs. 70.Sh HARDWARE 71Cards supported by the 72.Nm 73driver include: 74.Pp 75.Bl -item -offset indent 76.It 77.Tn Gravis 78Ultrasound PNP, and compatibles 79.El 80.Sh SEE ALSO 81.Xr audio 4 , 82.Xr gus 4 , 83.Xr isapnp 4 84.Sh REFERENCES 85Interwave(tm) IC Am78C201/202 Programmer's Guide Rev. 2. 1996. Advanced 86Micro Devices. 87.Sh HISTORY 88The 89.Nm guspnp 90driver appeared in 91.Nx 1.3 . 92.Sh AUTHORS 93.An Kari Mettinen Aq Kari.Mettinen@helsinki.fi , 94University of Helsinki. 95.Sh BUGS 96Sometimes you can cause a hiss on either left or right channel, or both. 97You can usually make it disappear by playing random data, however this 98might not be a very nice thing to your audio equipment, but it is the only 99way I have found out to be effective. 100.Pp 101Only the Codec is used in this version of the driver, therefore only 2 102channels are supported (left and right). Also sound quality is probably 103worse at lower kHz compared to playing through the synthesizer which does 104interpolation. 105.Pp 106If the implementation has a 'bad' oscillator, using frequencies 44.8kHz 107and 38.4kHz will result in incorrect playback frequency. The author has 108a GUS PnP Pro which displays this behaviour. 109.Pp 110Other members of the Interwave family have not been tested and don't 111have the glue needed to make them work. Should someone need to implement it, 112not many changes in the existing code are needed. Output voltage control in 113register CFIG2 [7] should be set differently for some other members of the 114family. 115.Pp 116Other architectures than i386 haven't been tested. The bus_space abstraction 117has been used from the beginning, so it should work. 118