1.\" $NetBSD: opl.4,v 1.21 2009/01/03 18:27:19 wiz 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 Lennart Augustsson. 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.\" 18.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 19.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 20.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 21.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 22.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 23.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 24.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 25.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 26.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 27.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 28.\" POSSIBILITY OF SUCH DAMAGE. 29.\" 30.Dd January 3, 2009 31.Dt OPL 4 32.Os 33.Sh NAME 34.Nm opl 35.Nd Yamaha OPL2 and OPL3 FM MIDI synthesizer driver 36.Sh SYNOPSIS 37.Cd "opl* at cmpci? flags 1" 38.Cd "opl* at eso?" 39.Cd "opl* at ess?" 40.Cd "opl* at fms?" 41.Cd "opl0 at isa? port 0x388" 42.Cd "opl* at sb?" 43.Cd "opl* at sv?" 44.Cd "opl* at wss?" 45.Cd "opl* at yds?" 46.Cd "opl* at ym?" 47.Cd "midi* at opl?" 48.Sh DESCRIPTION 49The 50.Nm 51driver provides support for the Yamaha OPL2 (YM3812) and OPL3 52(YMF262) chips. 53The chips are FM synthesizers and are capable 54of producing a wide range of sounds. 55.Pp 56Access to the device is through the MIDI driver. 57.Pp 58The 59.Nm 60driver usually attaches to a sound card, but it can also sit 61directly on the ISA bus. 62.Pp 63If 64.Dq flags 1 65is specified, the 66.Nm 67driver handles left and right channels of OPL3 swapped. 68Use this flag if your device has such problem. 69.Sh SEE ALSO 70.Xr cmpci 4 , 71.Xr eso 4 , 72.Xr ess 4 , 73.Xr fms 4 , 74.Xr isa 4 , 75.Xr midi 4 , 76.Xr sb 4 , 77.Xr sv 4 , 78.Xr wss 4 , 79.Xr yds 4 , 80.Xr ym 4 81.Sh HISTORY 82The 83.Nm 84device driver appeared in 85.Nx 1.4 . 86.Sh BUGS 87The OPL3 chip is operated in OPL2 mode despite being more capable. 88