1*9490d37cSjmc.\" $OpenBSD: harmony.4,v 1.9 2007/05/31 19:19:54 jmc Exp $ 24529165fSjason.\" 34529165fSjason.\" 44529165fSjason.\" Copyright (c) 2003 Jason L. Wright (jason@thought.net) 54529165fSjason.\" All rights reserved. 64529165fSjason.\" 74529165fSjason.\" Redistribution and use in source and binary forms, with or without 84529165fSjason.\" modification, are permitted provided that the following conditions 94529165fSjason.\" are met: 104529165fSjason.\" 1. Redistributions of source code must retain the above copyright 114529165fSjason.\" notice, this list of conditions and the following disclaimer. 124529165fSjason.\" 2. Redistributions in binary form must reproduce the above copyright 134529165fSjason.\" notice, this list of conditions and the following disclaimer in the 144529165fSjason.\" documentation and/or other materials provided with the distribution. 154529165fSjason.\" 164529165fSjason.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 174529165fSjason.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 184529165fSjason.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 194529165fSjason.\" DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, 204529165fSjason.\" INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 214529165fSjason.\" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 224529165fSjason.\" SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 234529165fSjason.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 244529165fSjason.\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 254529165fSjason.\" ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 264529165fSjason.\" POSSIBILITY OF SUCH DAMAGE. 274529165fSjason.\" 28*9490d37cSjmc.Dd $Mdocdate: May 31 2007 $ 294529165fSjason.Dt HARMONY 4 hppa 304529165fSjason.Os 314529165fSjason.Sh NAME 324529165fSjason.Nm harmony 332d387c7aSjmc.Nd CS4215/AD1849 audio device 344529165fSjason.Sh SYNOPSIS 354529165fSjason.Cd "harmony* at gsc? irq 13" 364529165fSjason.Cd "audio* at harmony?" 374529165fSjason.Sh DESCRIPTION 384529165fSjasonThe 394529165fSjason.Nm 404529165fSjasondevice uses the 414529165fSjason.Tn Crystal Semiconductor 424529165fSjason.Tn CS4215 434529165fSjason16-Bit Multimedia Audio Codec 444529165fSjasonor 454529165fSjason.Tn Analog Devices 464cd1696aSjason.Tn AD1849 474cd1696aSjason.Tn SoundPort(R) Stereo Codec 484529165fSjasonchip to implement the audio device interface described in 494529165fSjason.Xr audio 4 . 5006ec5924SmickeyThis device is found on most 5106ec5924Smickey.Tn HP PA-RISC 5206ec5924Smickeyworkstations. 534529165fSjasonThe 544529165fSjason.Nm 554529165fSjasonhas a maximum precision of 16 bits and has a stereo input and stereo output. 5606ec5924Smickey.Pp 5706ec5924SmickeyOn 5806ec5924Smickey.Tn HP 9000/712 5906ec5924Smickeymodels 6006ec5924Smickey.Nm 6106ec5924Smickeyalso provides two additional channels for an add-on 620dc68f61Smiodcard with two fax/voice modems. 63a497b587Smickey.Pp 64a497b587SmickeyOne of the hardware registers reflects the state of the 65a497b587Smickey.Tn CHI 66a497b587Smickeybus that is used to communicate with the codec and thus 67a497b587Smickeybeing sampled at a low accuracy secondary frequency 68a497b587Smickey(such as 69a497b587Smickey.Xr timeout 9 ) 70a497b587Smickeyproduces poor quality random bit stream that is fed into the 71a497b587Smickeyentropy pool of 72a497b587Smickey.Xr random 4 . 734529165fSjason.Sh SEE ALSO 744529165fSjason.Xr ioctl 2 , 754529165fSjason.Xr audio 4 , 764529165fSjason.Xr gsc 4 , 77a497b587Smickey.Xr intro 4 , 78a497b587Smickey.Xr random 4 794529165fSjason.Sh HISTORY 804529165fSjason.Ox 814529165fSjasonsupport for 824529165fSjason.Nm 834529165fSjasonfirst appeared in 844529165fSjason.Ox 3.3 . 85a497b587Smickey.Sh CAVEATS 86a497b587SmickeyTo trigger entropy collection 87a497b587Smickey.Tn CHI 88a497b587Smickeybus has to be programmed into the data mode that happens once 89a497b587Smickeya single buffer of data has been played or recorded. 90