Home | History | Annotate | Line # | Download | only in ic
ics2101reg.h revision 1.1
      1 /* $NetBSD: ics2101reg.h,v 1.1 1995/07/19 19:58:33 brezak Exp $ */
      2 /*
      3  * Copyright (c) 1994, 1995 Ken Hornstein.  All rights reserved.
      4  * Copyright (c) 1995 John T. Kohl.  All rights reserved.
      5  *
      6  * Redistribution and use in source and binary forms, with or without
      7  * modification, are permitted provided that the following conditions
      8  * are met:
      9  * 1. Redistributions of source code must retain the above copyright
     10  *    notice, this list of conditions and the following disclaimer.
     11  * 2. Redistributions in binary form must reproduce the above copyright
     12  *    notice, this list of conditions and the following disclaimer in the
     13  *    documentation and/or other materials provided with the distribution.
     14  * 3. All advertising materials mentioning features or use of this software
     15  *    must display the following acknowledgement:
     16  *	This product includes software developed by Ken Hornstein.
     17  * 4. The name of the authors may not be used to endorse or promote products
     18  *      derived from this software without specific prior written permission.
     19  *
     20  * THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR
     21  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
     22  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
     23  * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT,
     24  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
     25  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
     26  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
     27  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     28  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
     29  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     30  *
     31  *	$Id: ics2101reg.h,v 1.1 1995/07/19 19:58:33 brezak Exp $
     32  */
     33 
     34 /*
     35  * Register defs for Integrated Circuit Systems, Inc. ICS-2101 mixer
     36  * chip, used on Gravis UltraSound cards.
     37  *
     38  * Block diagram:
     39  *                                  port #
     40  *				       	0 +----+
     41  *   Mic in (Right/Left)	-->--->---|    |
     42  *					1 |    |	  amp --->---- amp out
     43  *   Line in (Right/Left)	-->--->---|    |	   |
     44  *					2 |    |	   |
     45  *   CD in (Right/Left)		-->--->---|    |--->---+---+----->---- line out
     46  *					3 |    |       |
     47  *   GF1 Out (Right/Left)	-->--->---|    |       |
     48  *					4 |    |       |
     49  *   Unused (Right/Left)	-->--->---|    |       |
     50  *					  +----+       v
     51  *					ICS 2101       |
     52  *						       |
     53  *	        To GF1 Sample Input ---<---------------+
     54  *
     55  *  Master output volume: mixer channel #5
     56  */
     57 
     58 /*
     59  * ICS Mixer registers
     60  */
     61 
     62 #define ICSMIX_CTRL_LEFT	0x00		/* Control left channel */
     63 #define ICSMIX_CTRL_RIGHT	0x01		/* Control right channel */
     64 #define ICSMIX_ATTN_LEFT	0x02		/* Attenuate left channel */
     65 #define ICSMIX_ATTN_RIGHT	0x03		/* Attenutate right channel */
     66 #define ICSMIX_PAEN		0x04		/* Panning control */
     67 #define ICSMIX_CHAN_0		0		/* Values for mixer channels */
     68 #define ICSMIX_CHAN_1		1
     69 #define ICSMIX_CHAN_2		2
     70 #define ICSMIX_CHAN_3		3
     71 #define ICSMIX_CHAN_4		4
     72 #define ICSMIX_CHAN_5		5
     73 
     74 #define	ICSMIX_MIN_ATTN		0x7f
     75 #define	ICSMIX_MAX_ATTN		0x00
     76 /*
     77  * The ICS mixer is write-only--it cannot be queried for current settings.
     78  * Drivers must keep track of current values themselves.
     79  */
     80