1.\" $NetBSD: gus.4,v 1.2 1996/02/27 22:39:39 jtc Exp $ 2.\" 3.\" Copyright (c) 1996 The NetBSD Foundation, Inc. 4.\" All rights reserved. 5.\" 6.\" This code is derived from software contributed to The NetBSD Foundation 7.\" by John T. Kohl. 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 REGENTS OR CONTRIBUTORS BE 29.\" 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 November 4, 1995 38.Dt GUS 4 i386 39.Os 40.Sh NAME 41.Nm gus 42.Nd 43Gravis UltraSound/UltraSound MAX device driver 44.Sh SYNOPSIS 45.Cd "gus0 at isa? port 0xPPP irq X drq Y flags Z" 46.Sh DESCRIPTION 47The 48.Nm gus 49driver provides support for the Gravis UltraSound (GUS) and GUS MAX 50audio cards. Both cards have on-board memory which is used for 51seamless playback of samples. They can play back 8- or 16-bit samples 52at up to 44.1kHz. They can record 8-bit samples at up to 44.1kHz. 53The UltraSound MAX is a full-duplex sound device, and if 54configured with two DRQ channels can be used for simultaneous playback 55and recording. The I/O port base is jumper-selected, and may be chosen 56from 0x210-0x260 in steps of 0x10. (The normal setting is 0x220.) The 57GUS takes 16 ports at its base address and 8 ports at its base address + 580x100. 59.Pp 60The IRQ is software programmed, so you may select any IRQ from the set 61{3,5,7,9,11,12,15}. The DRQ lines are software programmed, and may be 62chosen from {1,3,5,6,7}. The flags field in the configuration file line 63specifies a second DRQ line for recording. If there is no flags field 64in the config file, the playback channel will be used for recording DMA 65and only half-duplex mode will be available. 66.Pp 67The Gravis UltraSound MAX has an additional CODEC onboard which is 68addressed with four ports at an offset of 0x10C from the base ports 69(0x31C-0x36C). 70.Sh BUGS 71The full-duplex features of the GUS MAX have not been fully tested, and 72full-duplex on the original GUS may not be possible at all. 73.Pp 74Only two voices on the GF1 synthesizer chip are used by this driver (for 75left and right channels). 76.Pp 77Manipulating the mixer while audio samples are playing can lead to 78device driver confusion (and maybe even a system panic). 79.Pp 80Manipulating the mixer device seems to create pregnant system pauses, 81probably due to excessive interrupt masking. 82.Pp 83The joystick and MIDI port interfaces are not supported. 84.Sh SEE ALSO 85.Xr audio 4 86.Sh REFERENCES 87Gravis UltraSound Low-Level Toolkit, Revision 2.01, 20 May 1993, 88published by Advanced Gravis and Forte Technologies. 89.Sh HISTORY 90The 91.Nm gus 92device driver appeared in 93.Nx 1.1 . 94