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