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