Home | History | Annotate | Line # | Download | only in isa
cs4231var.h revision 1.1
      1 /* $NetBSD: cs4231var.h,v 1.1 1995/07/07 02:11:57 brezak Exp $ */
      2 /*
      3  *  Copyright (c) 1995 John T. Kohl
      4  *  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. The name of the author may not be used to endorse or promote products
     15  *     derived from this software without specific prior written permission.
     16  *
     17  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR `AS IS'' AND ANY EXPRESS OR
     18  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
     19  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
     20  * DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
     21  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
     22  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
     23  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
     24  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
     25  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
     26  * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
     27  * POSSIBILITY OF SUCH DAMAGE.
     28  *
     29  */
     30 
     31 /*
     32  * Software gunk for CS4231, as used in Gravis UltraSound MAX.
     33  */
     34 
     35 struct cs4231_softc {
     36     int in_port;			/* which MUX input port? */
     37 #define CS4231_MUX_MIXED_IN	0
     38 #define CS4231_MUX_MIC_IN	1
     39 #define CS4231_MUX_AUX1_IN	2
     40 #define CS4231_MUX_LINE_IN	3
     41 };
     42 
     43 int	cs4231_set_linein_gain __P((struct ad1848_softc *, struct ad1848_volume *));
     44 int	cs4231_get_linein_gain __P((struct ad1848_softc *, struct ad1848_volume *));
     45 int	cs4231_set_mono_gain __P((struct ad1848_softc *, struct ad1848_volume *));
     46 int	cs4231_get_mono_gain __P((struct ad1848_softc *, struct ad1848_volume *));
     47 void	cs4231_mute_mono __P((struct ad1848_softc *, int /* onoff */));
     48 void	cs4231_mute_line __P((struct ad1848_softc *, int /* onoff */));
     49 void	cs4231_mute_monitor __P((struct ad1848_softc *, int /* onoff */));
     50